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

Not working in android #21

Open
esinoheh opened this issue Nov 27, 2023 · 4 comments
Open

Not working in android #21

esinoheh opened this issue Nov 27, 2023 · 4 comments

Comments

@esinoheh
Copy link

esinoheh commented Nov 27, 2023

Hello
I have a simple code like

<core:SfBusyIndicator Grid.Row="1"
                      BackgroundColor="White"
                      HeightRequest="150"
                      AnimationType="CircularMaterial"
                      OverlayFill="Transparent" 
                      TitlePlacement="Bottom"
                      TextColor="Black"
                      FontSize="Title"
                      Title="{localization:Translate SplashLoadingWaitContent}"
                      IsRunning="True">
</core:SfBusyIndicator>

The title is showing in Windows app but not showing in Android device
But the <Label Text="{localization:Translate SplashLoadingWaitContent}"></Label> works on both platfroms.

@SirJohnK
Copy link
Owner

Hi!

I assume this is the Syncfusion BusyIndicator. I added it to the Sample project (see below) without any issues.

           <core:SfBusyIndicator
               Title="{localization:Translate Hello}"
               AnimationType="CircularMaterial"
               BackgroundColor="White"
               FontSize="Title"
               HeightRequest="150"
               IsRunning="True"
               OverlayFill="Transparent"
               TextColor="Black"
               TitlePlacement="Bottom" />

image

@esinoheh
Copy link
Author

esinoheh commented Nov 28, 2023

I have no idea why it doesn't work on my android emulator! and only on this SfBusyIndicator, I guess you can close the issue then

@SirJohnK
Copy link
Owner

SirJohnK commented Nov 29, 2023

Maybe it is a visual thing. Do you mind sharing your entire XAML view?
(Also, my test was made on a physical Android device)

@esinoheh
Copy link
Author

esinoheh commented Nov 29, 2023

Oncourse not

<?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"
             x:Class="Something.Views.SplashPage"
             xmlns:localization="clr-namespace:LocalizationResourceManager.Maui;assembly=LocalizationResourceManager.Maui"
             xmlns:core="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
             Title="SplashPage">
    <VerticalStackLayout>
        <VerticalStackLayout Spacing="25"
                             Padding="30,0"
                             VerticalOptions="Center">

            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <!-- Splash image. -->
                <Image Source="{StaticResource SplashImage}"
                       Grid.Row="0"
                       HeightRequest="512" 
                       WidthRequest="512"
                       VerticalOptions="Center"
                       HorizontalOptions="Center"/>
                    
                <!-- Please wait. -->
                <core:SfBusyIndicator Grid.Row="1"
                                      BackgroundColor="White"
                                      HeightRequest="150"
                                      AnimationType="CircularMaterial"
                                      OverlayFill="Transparent" 
                                      TitlePlacement="Bottom"
                                      TextColor="Black"
                                      FontSize="Title"
                                      IsRunning="True">
                </core:SfBusyIndicator>

                <Label Grid.Row="2"
                       FontSize="Title"
                       Text="{localization:Translate SplashLoadingWaitContent}"
                       HorizontalTextAlignment="Center" />

            </Grid>

        </VerticalStackLayout>
    </VerticalStackLayout>
</ContentPage>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants