typeface - setTypeface to all the layout at one time ...android -


is there away set type face views(including list view) @ 1 time, instead of doing each view.thank

you can use following method set typeface layouts

public void setfont(viewgroup group, typeface font) {         int count = group.getchildcount();         view v;         (int = 0; < count; i++) {             v = group.getchildat(i);             if (v instanceof textview || v instanceof edittext || v instanceof button) {                 ((textview) v).settypeface(font);             } else if (v instanceof viewgroup)                 setfont((viewgroup) v, font);         }     } 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -