Monday, April 14, 2014

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
<-! 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:
cited a floor w304970865rui reply:
is to manually change the font size of the program?

Is to change the font size of the entire application, rather than a place of textview.
Reply:
reference to the second floor sunhangok reply:
by defining the style of the font size, use the style in every xml, and you can change the application's font

If you want the font size from 1-30, would not have 30 styles? I do not know I did it wrong
Reply:
references, 4th Floor hzgmm reply:
reference to the second floor sunhangok reply: by defining the style of the font size, use the style in each of the xml, you can Change the application's font
If you want the font size from 1-30, would not have 30 styles? I do not know I did it wrong

Software is running, you can dynamically modify the software fonts?
Reply:
references, 5th Floor sunhangok reply:
references, 4th Floor hzgmm reply: Quote, 2nd Floor sunhangok reply: by defining the style of the font size in each xml using that style, you can change the application's font
If you want the font size from 1-30, would not have 30 styles? I do not know I got it wrong not
Software is running, you can dynamically modify the software fonts?

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:
cited landlord hzgmm reply:
how to modify certain range of numbers (eg 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


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:
reference to the 7th floor jsyzgygcj reply:
import a font into the assets folder inside, calling setFront method, you can set the size of the text font color, etc. < / blockquote>

SetFont is not it?
Can give a simple example to see?
Reply:
reference to the 8th floor windspeaker reply:
cited landlord hzgmm Re: How to modify a range of numbers (eg 5-30) to change the application itself font size it? On a wrong note.

Have done it? Or give some tips! Thank

Try this,
Add Style
in the styles.xml