Here is my problem :
I want to be able to change the font of several TextView at the same time in my android application.
Changing it in the XML files seems to be complicated, extending TextView class brings memory problems (see here).
So i tried to change the font in the java code, like that :
Typeface robotoThin = Typeface.createFromAsset(getAssets(),"fonts/Roboto-Thin-webfont.ttf");
TextView index_slogan = ((TextView)findViewById(R.id.index_slogan));
index_slogan.setTypeface(robotoThin);
That's working great, but i'd rather to select more than one Textview, with findViewsWithText
, but i can't understand how it works...
Some help would be appreciated.
EDIT :
Ok so it didn't work because it's been implemented since API level 14, and i was trying on API level 10...
Do you know any other functions to find multiple views?