css - Can't override theme's default text color (android) -
css - Can't override theme's default text color (android) -
i want have 1 list view different text color instead theme's default color.i can override text size , style , row background color text color remains theme's default. can tell me i'm doing wrong? styles.xml:
<resources> <!-- base of operations application theme, dependent on api level. theme replaced appbasetheme res/values-vxx/styles.xml on newer devices. --> <style name="appbasetheme" parent="theme.appcompat.light"> <!-- theme customizations available in newer api levels can go in res/values-vxx/styles.xml, while customizations related backward-compatibility can go here. --> </style> <!-- application theme. --> <style name="apptheme" parent="appbasetheme"> <!-- customizations not specific particular api-level can go here. --> </style> <style name="rowstyle" parent="@style/rowbackground"> <item name="android:textcolor">#ffffff</item> <item name="android:textsize">25sp</item> <item name="android:textstyle">bold</item> </style> <style name="rowbackground" > <item name="android:background">@drawable/row_background</item> <item name="android:paddingleft">15dp</item> </style> </resources>
and activity_main.xml:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="@dimen/activity_vertical_margin" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" tools:context="com.example.houstone.mainactivity" > <listview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:layout_below="@+id/countries" android:id="@+id/cities" style="@style/rowstyle"/> </relativelayout>
android css
Comments
Post a Comment