viewpagerindicator - when am setting styles to to tab page indicator it is not applying in android -
when trying set style titlepageindicator in android not getting applied. following lines styles.xml code when trying set fragment activity these style not applying.
<style name="styledindicators" parent="@android:style/theme.light"> <item name="vpicirclepageindicatorstyle">@style/customcirclepageindicator</item> <item name="vpilinepageindicatorstyle">@style/customlinepageindicator</item> <item name="vpititlepageindicatorstyle">@style/customtitlepageindicator</item> <item name="vpitabpageindicatorstyle">@style/customtabpageindicator</item> <item name="vpiunderlinepageindicatorstyle">@style/customunderlinepageindicator</item> </style> <style name="customtitlepageindicator"> <item name="android:background">#18ff0000</item> <item name="footercolor">#ffaa2222</item> <item name="footerlineheight">1dp</item> <item name="footerindicatorheight">3dp</item> <item name="footerindicatorstyle">underline</item> <item name="android:textcolor">#aa000000</item> <item name="selectedcolor">#ff000000</item> <item name="selectedbold">true</item> </style> <style name="customtabpageindicator" parent="widget.tabpageindicator"> <item name="android:background">@drawable/custom_tab_indicator</item> <item name="android:textappearance">@style/customtabpageindicator.text</item> <item name="android:textcolor">#ff555555</item> <item name="android:textsize">16sp</item> <item name="android:divider">@drawable/custom_tab_indicator_divider</item> <!-- <item name="android:dividerpadding">10dp</item> <item name="android:showdividers">middle</item> --> <item name="android:paddingleft">8dp</item> <item name="android:paddingright">8dp</item> <item name="android:fadingedge">horizontal</item> <item name="android:fadingedgelength">8dp</item> </style> <style name="customtabpageindicator.text" parent="android:textappearance.medium"> <item name="android:typeface">monospace</item> </style>
in manifest file setting theme
<activity android:name=".mainactivity" android:label="@string/app_name" android:theme="@style/styledindicators"> </activity>
but styles not applying titles. when executing view pager indicator downloaded sample application it's working fine.
Comments
Post a Comment