Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider is not visible in Android #64

Open
davepruitt opened this issue Apr 1, 2024 · 1 comment
Open

Slider is not visible in Android #64

davepruitt opened this issue Apr 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@davepruitt
Copy link
Contributor

I created a brand-new blank MAUI app. I then simply tried to add a slider to the main page, using the following XAML:

<aloha:Slider Value="0" Minimum="0" Maximum="100" WidthRequest="300" />

It does not show up. The space is empty. Any suggestions? Is this a bug, or am I doing something incorrect?

Android device: Galaxy Tab A7 Lite (SM-T220)
Android OS: 14
.NET version: 8.0
AlohaKit version: the latest "stable" version on Nuget - 1.0.74

My full XAML file:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:aloha="clr-namespace:AlohaKit.Controls;assembly=AlohaKit"
             x:Class="AlohaSliderTest.MainPage">

    <ScrollView>
        <VerticalStackLayout
            Padding="30,0"
            Spacing="25">

            <aloha:Slider Value="0" Minimum="0" Maximum="100" WidthRequest="300" />

            <Image
                Source="dotnet_bot.png"
                HeightRequest="185"
                Aspect="AspectFit"
                SemanticProperties.Description="dot net bot in a race car number eight" />

            <Label
                Text="Hello, World!"
                Style="{StaticResource Headline}"
                SemanticProperties.HeadingLevel="Level1" />

            <Label
                Text="Welcome to &#10;.NET Multi-platform App UI"
                Style="{StaticResource SubHeadline}"
                SemanticProperties.HeadingLevel="Level2"
                SemanticProperties.Description="Welcome to dot net Multi platform App U I" />

            <Button
                x:Name="CounterBtn"
                Text="Click me" 
                SemanticProperties.Hint="Counts the number of times you click"
                Clicked="OnCounterClicked"
                HorizontalOptions="Fill" />
        </VerticalStackLayout>
    </ScrollView>

</ContentPage>
@JohnCKoenig
Copy link

Experiencing this same issue on Pixel 7 Pro Emu

@jsuarezruiz jsuarezruiz added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants