Friends everyone has the thirst to make their app to look different, here I will suggest how to add external Fonts into your app. You can get more number of fonts here. I downloaded a font named idolwild.ttf, when we open it, you can see as like below

Image

No need to install. Follow these steps

1) Just copy the .ttf file into assets folder of your project, I made another folder named font inside assets and saved the font file at assets/font/idolwild.ttf

2) I edited res/layout/activity_main.xml to hold a textview and edittextview for demonstration purpose and gave an id to parent Relative Layout

Image

3) and do changes at MainActivity.java

Image

4) Hence the result would be, all views will get converted to our required font. Just like this

Image

Hope this may help someone,

Enjoy … !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s