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

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -