Monday, 15 February 2010

android - Device Font Size -


Is there a way to know what the font size is on the phone, i.e.

 < Code> Settings & gt; Display & gt; Font = small / normal / large / huge   

inside my app? I need to change the height of a scene depending on the device font size. Is there any way to do this?

Any help would be appreciated.

You can get to the device by using the font scale:

 < Code> float scale = getResources (). GetConfiguration (). FontScale;    

No comments:

Post a Comment