How to resize text on android according to screen -


i working on android application in want set text size according screen. using following method, not re-sizing text size according screen.

myrequesttext.settextsize(convertfromdp(21));//myrequesttext textview public float convertfromdp(int input) {         final float scale = getresources().getdisplaymetrics().density;         return ((input - 0.5f) / scale);     } 


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

sql - The object name contains more than the maximum number of prefixes. The maximum is 2 -

Java Web Service Soap fault exception client -