SmartTabLayout icon indicating copy to clipboard operation
SmartTabLayout copied to clipboard

How to change the font style?

Open fauzynurn opened this issue 6 years ago • 2 comments

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.

fauzynurn avatar Apr 22 '18 14:04 fauzynurn

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

psydj1 avatar Aug 20 '18 07:08 psydj1

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.

assilMekki avatar Mar 25 '19 13:03 assilMekki