android - Implement Material-themed widgets -
i have values/styles.xml file quite number of entries within such defining actionbar, it's title , tab text. in application, show new materials design icons when running on android 5.x smartphones.
looking @ developer guideline page, have in values/styles.xml:
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="theme.foo" parent="android:theme.holo.light.darkactionbar"> <item name="android:actionbarstyle">@style/fooactionbar</item> <item name="android:actionbartabtextstyle">@style/fooactionbartabtext</item> </style> <style name="fooactionbar" parent="android:widget.holo.actionbar"> ... </style> <!-- actionbar title text --> <style name="fooactionbartitletext" parent="android:textappearance.holo.widget.actionbar.title"> ... </style> <!-- actionbar tabs text styles --> <style name="fooactionbartabtext" parent="android:widget.holo.actionbar.tabtext"> ... </style> </resources>
in values-v21/styles.xml file, have:
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="theme.foo" parent="android:theme.material.light.darkactionbar"> </style> </resources>
however, seems ignored when go various screens on android 5.x phone, still showing kitkat widgets. did interpret wrong on maintaining compatibility developer guide page? have provide entries elements such fooactionbar , fooactionbartitletext the values-v21/styles.xml file?
i don't know if copy pasted wrong values-v21/styles.xml
instead of values-21/styles.xml
Comments
Post a Comment