user1010764 user1010764 - 10 months ago 79
Android Question

can the font type of an Edittext,Radio Button and CheckBox be changed in Android

I am a beginner in android.I can able to change the font type of a Textview in Android.But I have to use .ttf file in asset folder,to bring this kind of font change.

TextView text = (TextView) layout.findViewById(;
Typeface font = Typeface.createFromAsset(getAssets(), "fonts/handsean.ttf");

The above code is what I used to change the font of a text View.but I need to change the font type of the text of Radio Button,Edittext and Check box(which Im also used in my application) as well.Plz help me out here.Thanks in advance.

Answer Source

Yes you have to follow the same code wht u have mentioned here.This will work for other controls too like Edittext,CheckBox etc.