Android accessibility font sizes issue in xamarin Entry fields

Viewed 203

When using the android accessibility font sizes issue in xamarin Entry fields. As shown below the 1st image with general font size ( SIZE 3) so the text in the entry fields looks perfectly OK,
enter image description here enter image description here but what we change the phone font size to 5 the entry file Text cut through the half , As below enter image description here enter image description here I have tried with vertical option center, gridhight="*" as well as Auto, no use, the code as below

<ContentPage.Content>
    <ScrollView>
        <Grid Margin="20,10,20,0" RowSpacing="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Label
                Grid.Row="0"
                FontFamily="{StaticResource KhulaRegular}"
                FontSize="14"
                HorizontalOptions="StartAndExpand"
                HorizontalTextAlignment="Start"
                Text="{Translu:Translate SetupDeliveryInfoDetailRecipientPage_Header}"
                TextColor="#334a5e" />

            <!--  Recepient Name  -->
            <StackLayout Grid.Row="1" Spacing="0">
                <Grid
                    Margin="0"
                    Padding="0"
                    RowSpacing="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>

                    <Label
                        Grid.Row="0"
                        FontFamily="{StaticResource KhulaRegular}"
                        FontSize="12"
                        HorizontalOptions="StartAndExpand"
                        HorizontalTextAlignment="Start"
                        Text="{Translu:Translate SetupDeliveryInfoDetailRecipientPage_ReceipientName}"
                        TextColor="#777777" />

                    <Entry
                        Grid.Row="1"
                        FontFamily="{StaticResource KhulaRegular}"
                        FontSize="16"
                        HorizontalOptions="FillAndExpand"
                        PlaceholderColor="{DynamicResource OverImageTextColor}"
                        Style="{StaticResource SingleLineEntryStyle}"
                        Text="{Binding RecipientName, Mode=TwoWay}"
                        TextColor="#334a5e" />

                    <local:RoundedLabel
                        Grid.Row="2"
                        IsVisible="{Binding IsRecipientNameVisible}"
                        Style="{StaticResource ValidationEntryErrorStyle}"
                        Text="{Translu:Translate SetupDeliveryInfoDetailRecipientPage_ReceipientNameErrorText}" />
                </Grid>
            </StackLayout>

but if we give fixed height the text will show, but that is not the good way to do XAML coding, so we have to give height to different font sizes which are impossible, is there any way that we can fix the entry filed text to see in an increase of font size in the phone , thank you in advanced for your support

0 Answers
Related