ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

Font Icon For Tabs #239

Open AAmeriyan opened 7 years ago

AAmeriyan commented 7 years ago

how can I use a font icon or any other custom font for tabs? i have created the custom font class and I'am using it in other parts of my app i have changed the createDefaultTabView return type to my own custom font class in smartTabLayout class but it didn't work.

  protected CustomFontIcon createDefaultTabView(CharSequence title) {
    CustomFontIcon textView = new CustomFontIcon(getContext());
    textView.setGravity(Gravity.CENTER);
     .
     .
     .

any suggestion?