Skip to content Skip to sidebar Skip to footer

I Want To Change Font Of String Without Using Textview In Android

I want to change the below string font using typeface in android and i am displaying these fonts in listview. private String [] strArray ={'hello','welcome','aneesh','raja','kruht

Solution 1:

Create a fonts folder inside the assets and put your fonts file inside fonts folder. Define your Typeface like this

typeFaceRegular = Typeface.createFromAsset(context.getAssets(),
            "fonts/Signika-Regular.otf");

I hope this will help you.

Post a Comment for "I Want To Change Font Of String Without Using Textview In Android"