Urgent! Modify the application itself, the font size
How to modify the range of numbers (e.g. 5-30) to change the font size of the application itself does? On a wrong note.
Have done it? Or give some tips! Thank you
<-! Baidu Button BEGIN -> more Share to: <-! Baidu Button END ->
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: Program is to manually change the font size? Reply: By defining the style of the font size, use the style in every xml, and you can change the application's font Reply:
Is to change the font size of the entire application, rather than a place of textview. Reply:
If you want the font size from 1-30, would not have 30 styles? I do not know I did it wrong Reply:
Software is running, you can dynamically modify the software fonts? Reply:
Yes Reply: Importing a font into the assets folder inside, calling setFront method, you can set the size of the font color of the text, and so on Reply:
Try this, Add Style in the styles.xml
Then the activity's onCreate the first line write setTheme (R.style.MyTheme); it. Note that the only prior super.onCreate setTheme call, so if it is already open activity must be restarted in order to be effective. However, this must also build a number of styles to achieve multiple font sizes.
Reply:
SetFont is not it? Can give a simple example to see? Reply: