How to change the font on the TextView? A1. First download the .ttf file of the font you need ( arial.ttf ). Place it in the assets folder(Inside assets folder create new folder named fonts and place it inside it). If txtyour is the textviews you want to apply the font , use the following piece of code, Typeface type = Typeface . createFromAsset ( getAssets (), "fonts/Kokila.ttf" ); txtyour . setTypeface ( type ); A2. Typeface tf = ...
Reset Android textview maxlines ? A1. Actually, the way android platform does that is by setting the MaxLine to Integer.MAX_VALUE. textView . setMaxLines ( Integer . MAX_VALUE ); also, if you are using Ellipsize, don't forget to set to null. textView . setEllipsize ( null ); just check how the android framework do just that ;) watch the setMaxLines(Integer.MAX_VALUE); private void applySingleLine ( boolean singleLine , boolean applyTransformation ) { mSingleLine = singleLine ; if ( singleLine ) { ...