How to Change swipe Tab Title color in java Android -
by default, view pager(swipe tabs) tab title color white want change orange. can 1 me please or share if have tutorial.
thanks...
use style in styles.xml , assign style tab layout.
<style name="mymaterialtheme.tablayout" parent="widget.design.tablayout"> <item name="tabindicatorcolor">@android:color/white</item> <item name="tabindicatorheight">3dp</item> <item name="tabtextappearance">@style/mymaterialtheme.tablayout.textappearance</item> <item name="tabselectedtextcolor">@android:color/white</item> <item name="android:background">@color/colorprimary</item> </style> <style name="mymaterialtheme.tablayout.textappearance" parent="textappearance.design.tab"> <item name="android:textsize">14sp</item> <item name="android:textcolor">@color/tab_text_inactive</item> <item name="textallcaps">true</item> </style>
check implementation here.
Comments
Post a Comment