android - Force font size -


in app there lot of strings, used sp size.

yesterday increased fonts size in system-preferences of android , size bigger in app, not me because strings in app big.

there solution force font size regardless of operating system?

thanks lot

i not sure why want app ignore system setting. feature people have difficulty reading small text sizes.

and have not once come across solution lets app override feature. if absolutely must try , override same anyway, i think (see note @ end) changing current sp values dp should in, theory, ignore settings. (some changes. see update)

the sp used font size (android:textsize) honor settings user might override entire system. developer, should account situation making sure layouts account , accommodate such change.

if choose still ignore in app... each own.

note: place emphasis on i think because developer wants app liked , appreciated, wouldn't consider such override , hence never ventured test if works. please leave comment if theory has been tested , contrary mine. ;-)

update: theory works. ;-)

i set system font size huge before testing this.

notice font in background remains unchanged. changes font size in alertdialog.

first test after changing size using same sp setting in app first test after changing size using same <code>sp</code> setting in app

second test keeping same size (huge) changing sp dp second test keeping same size (huge) changing <code>sp</code> <code>dp</code>


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -