I am developing an Android Application and I would like to read the Font Size under Settings->Display->Font Size.
So if a user has set his Font Size to Small/Big/Huge, I would like to apply this automaticly to all my text
I am using a Samsung Galaxy Nexus, Android 4.1.2
Thank you in advance for your help
Try reading FONT_SCALE
from android.provider.Settings.System
.
You can also define your text size using "sp" units which is the same like "dp" but scales according to the users system setting for text size. No need to read the font size from the system yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With