![]() ![]() OverrideConfiguration = fontScale = overrideConfiguration. You can also try to override attachBaseContext method: protected override void AttachBaseContext(Context overrideConfiguration = new Configuration() Protected override void OnCreate(Bundle savedInstanceState) (configuration, metrics) ī(configuration) ī(metrics) ![]() Metrics.ScaledDensity = configuration.FontScale * metrics.Density 0.85 small, 1 standard, 1.15 big,1.3 more bigger ,1.45 supper bigĭisplayMetrics metrics = new DisplayMetrics() You can try the following code in Mainactivity.cs: private void initFontScale()Ĭonfiguration configuration = Resources.Configuration How can I prevent this? Any help is appreciated. Which I am able to prevent.Now the problem I am facing is when user change the display size in the settings of android again my design gets distorted. ![]() These libraries predominantly come from the open. When user change the device font size in accessibility settings of android, My apps design gets scrampled. Android is delivered with a set of native libraries written in C/C++, which provide various types of services. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |