RajaReddy PolamReddy
RajaReddy PolamReddy

Reputation: 22493

How to change font Style Dynamically in TextView?

i am new to android, please help me

in my application i want to enter text on image and i want to change the text Font dynamically how it will be do in TextView,

please give suggestions.

Upvotes: 1

Views: 4107

Answers (1)

Randroid
Randroid

Reputation: 3698

Try this,

  Typeface tf = Typeface.createFromAsset(getAssets(),
        "fonts/Arial.otf");
    TextView tv = (TextView) findViewById(R.id.CustomFontText);
    tv.setTypeface(tf)

Upvotes: 3

Related Questions