Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Using a Custom Font in Android application on switch toggle

$
0
0

I have a switch which when enabled should change the font used for labels in the application.

I have this working in iOS as I can simply set the font value in the global style and it will update.
However I am struggling with Android.

Android requires me to use a custom renderer, which I have done. This is great for setting a custom font in the whole of the application.
However, what I want to achieve is that the custom font will only be set when the switch is enabled/toggled, and the default font will be set once the switch is disabled/untoggled.

I would appreciate it if anyone has any ideas as to how I may be able to achieve this? Thank you!


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>