Hello,
You could override the Resource in the MainActivity to cover the font size of the system.
You could add the following code into Platforms/Android/MainActivity.cs
to implement this feature.
// add the overrided property into MainActivity class
public override Resources? Resources {
get
{
Resources resource = base.Resources;
Configuration configuration = new Configuration();
configuration.SetToDefaults();
if (Build.VERSION.SdkInt >= BuildVersionCodes.NMr1)
{
return CreateConfigurationContext(configuration).Resources;
}
else
{
resource.UpdateConfiguration(configuration, resource.DisplayMetrics);
return resource;
}
}
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.