android - Design Support TabLayout Style Not Applied -
i'm working android.support.design.widget.tablayout , i'm having real hardtime trying make applied theme work. here's xml i'm trying use:
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.tablayout android:id="@+id/viewpagerlayout_tabview" android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/tablayout.theme"/> <framelayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v4.view.viewpager android:id="@+id/viewpagerlayout_viewpager" android:layout_width="match_parent" android:layout_height="match_parent" /> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="@android:color/transparent" android:visibility="gone" /> </framelayout> </linearlayout>
here's style being applied:
<style name="tablayout.theme" parent="widget.design.tablayout"> <item name="tabindicatorcolor">@color/rowheadercolor</item> <item name="tabindicatorheight">5dp</item> <item name="tabtextappearance">@style/textappearance.jacksonville.tab</item> <item name="tabselectedtextcolor">#000</item> </style> <style name="textappearance.jacksonville.tab" parent="textappearance.design.tab"> <item name="android:textsize">12sp</item> <item name="android:textcolor">#4c4d4f</item> <item name="textallcaps">true</item> </style>
when applied theme, textcolor doesn't appear 1 selected. thought problem sight changed selected: black , not selected: white same colors appeared. there needing besides in order theme applied? problem text colors. textallcaps, textsize , other attributes being applied no major problems.
thanks!
Comments
Post a Comment