user3278077
user3278077

Reputation:

How to change the Font of the Contextual Actionbar.?

I have a contextual action bar which is showing some text. I have changed the font of each and every text in my App expect this cab. I looked for it, but I am unable to find any. Is there any way to change the font of CAB to an external typeface font.?

Here is what I have:

enter image description here

Here is the font I want:

enter image description here

The font is external one, called VTKS-BAGACO.ttf

Upvotes: 0

Views: 90

Answers (1)

user3217803
user3217803

Reputation:

you need to create external typeface for VTKS-BAGACO. and put it in assets folder. Now use that typeface as below in your activity:

Typeface tf = Typeface.createFromAsset(this.getAssets(), "VTKS-BAGACO.otf");
textview.setTypeface(tf);

Upvotes: 1

Related Questions