Closed Fakher-Hakim closed 8 years ago
Ok i get the position of the tab but i can't find any method to change the text color ! i just get these 2 methods: setTextAlignment() setTextDirection()
HI, @Fakher-Hakim
If you are using the default tab you need to transform yourself.
TextView tabView = (TextView) tabLayout.getTabAt(position);
If you specify a custom tab layout, please use the findViewById.
<com.ogaclejapan.smarttablayout.SmartTabLayout
....
app:stl_customTabTextLayoutId="@layout/custom_tab"
app:stl_customTabTextViewId="@id/custom_text"
....
/>
TextView tabView = (TextView) tabLayout.getTabAt(position).findViewById(R.id.custom_text);
For a long time, there is no response. So, we will close the issue.
Hi, @Fakher-Hakim
Please use this method.
Solved?