jsuarezruiz / AlohaKit.Controls

A set of .NET MAUI drawn controls.
MIT License
405 stars 46 forks source link

Slider is not visible in Android #64

Open davepruitt opened 3 months ago

davepruitt commented 3 months ago

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 commented 3 months ago

Experiencing this same issue on Pixel 7 Pro Emu