SmartTabLayout
SmartTabLayout copied to clipboard
How to change the font style?
I have tried using attribute app:stl_customTabTextLayoutId="@+id/textview_id" but it didn't work. I have defined the TextView like this :
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:fontFamily="@font/agbold" android:id="@+id/textview_id" />
Did i do something wrong?
Thanks.
You have to do stl_customTabTextLayoutId="@layout/custom_text_view_layout" and then stl_customTabTextViewId="@id/text_view_id_in_the_above_layout"
Basically create a separate xml file with new layout with textview inside it, use the name of the xml file and the id of textview inside it
You have to do stl_customTabTextLayoutId="@layout/custom_text_view_layout" and then stl_customTabTextViewId="@id/text_view_id_in_the_above_layout"
Basically create a separate xml file with new layout with textview inside it, use the name of the xml file and the id of textview inside it
this works btw for anyone looking.