C# xamarin输入字段中的Android辅助功能字体大小问题
使用android辅助功能时,xamarin输入字段中的字体大小问题。如下图所示,第一幅图像的字体大小为一般字体大小(大小为3),因此输入字段中的文本看起来非常正常,C# xamarin输入字段中的Android辅助功能字体大小问题,c#,xaml,xamarin,xamarin.forms,xamarin.android,C#,Xaml,Xamarin,Xamarin.forms,Xamarin.android,使用android辅助功能时,xamarin输入字段中的字体大小问题。如下图所示,第一幅图像的字体大小为一般字体大小(大小为3),因此输入字段中的文本看起来非常正常, 但是我们将手机字体大小改为5,输入文件文本将剪切一半,如下所示 我试过垂直选项中心,gridhight=“*”以及自动,没有用,代码如下 <ContentPage.Content> <ScrollView> <Grid Margin="20,10,20,0"
但是我们将手机字体大小改为5,输入文件文本将剪切一半,如下所示 我试过垂直选项中心,gridhight=“*”以及自动,没有用,代码如下
<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>
但是如果我们给文本指定了固定的高度,但是这不是进行XAML编码的好方法,因此我们必须给不同的字体大小指定高度,这是不可能的,我们有没有办法固定输入字段文本,以便在手机中看到字体大小的增加,感谢您在advanced中的支持请尽量不要使用
FontFamily
。我使用了默认字体,当设备字体大小发生变化时,它仍然会完全显示。可能是因为字体不同。感谢您的回复和帮助,我想在字体大小发生变化时使用此自定义字体。你知道如何做到这一点吗?不同的字体有不同的效果,我还没有找到一个好方法来做到这一点。尽量不要使用fontfamine
。我使用了默认字体,当设备字体大小发生变化时,它仍然会完全显示。可能是因为字体不同。感谢您的回复和帮助,我想在字体大小发生变化时使用此自定义字体。那么,你知道如何做到这一点吗?不同的字体有不同的效果,我还没有找到一个好方法来做到这一点。