Set text color to white for api level < 13

This commit is contained in:
Jimmy Shih
2013-07-03 16:59:17 -07:00
parent 0f86dcbcb1
commit 4b4fd603f1
2 changed files with 9 additions and 30 deletions
-18
View File
@@ -37,24 +37,6 @@ limitations under the License.
<!-- Same as TextChooseActivity in values/styles.xml except removing textSize and using textAppearance --> <!-- Same as TextChooseActivity in values/styles.xml except removing textSize and using textAppearance -->
<item name="android:textAppearance">?android:attr/textAppearanceListItemSmall</item> <item name="android:textAppearance">?android:attr/textAppearanceListItemSmall</item>
</style> </style>
<!-- The style for large size text -->
<style name="TextLarge" parent="@android:style/TextAppearance.DeviceDefault.Large">
<!-- same as TextLarge in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
</style>
<!-- The style for medium size text -->
<style name="TextMedium" parent="@android:style/TextAppearance.DeviceDefault.Medium">
<!-- same as TextMedium in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
</style>
<!-- The style for small size text -->
<style name="TextSmall" parent="@android:style/TextAppearance.DeviceDefault.Small">
<!-- same as TextSmall in values/styles.xml except inheriting from a parent instead of specifying textSize -->
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
</style>
<style name="TrackWidgetLabel"> <style name="TrackWidgetLabel">
<!-- same as TrackWidgetLabel in values/styles.xml except adding textAllCaps --> <!-- same as TrackWidgetLabel in values/styles.xml except adding textAllCaps -->
<item name="android:layout_gravity">center_horizontal</item> <item name="android:layout_gravity">center_horizontal</item>
+9 -12
View File
@@ -206,14 +206,17 @@ limitations under the License.
<item name="android:layout_weight">1</item> <item name="android:layout_weight">1</item>
<item name="android:layout_width">0dp</item> <item name="android:layout_width">0dp</item>
</style> </style>
<style name="Text">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textColor">@android:color/white</item>
</style>
<!-- text choose activity --> <!-- text choose activity -->
<style name="TextChooseActivity"> <style name="TextChooseActivity">
<item name="android:textSize">18sp</item> <item name="android:textSize">18sp</item>
</style> </style>
<!-- text large --> <!-- text large -->
<style name="TextLarge"> <style name="TextLarge" parent="@style/Text">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textSize">22sp</item> <item name="android:textSize">22sp</item>
</style> </style>
<!-- text large with top margin --> <!-- text large with top margin -->
@@ -221,9 +224,7 @@ limitations under the License.
<item name="android:layout_marginTop">8dp</item> <item name="android:layout_marginTop">8dp</item>
</style> </style>
<!-- text medium --> <!-- text medium -->
<style name="TextMedium"> <style name="TextMedium" parent="@style/Text">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textSize">18sp</item> <item name="android:textSize">18sp</item>
</style> </style>
<!-- text medium with icon --> <!-- text medium with icon -->
@@ -232,15 +233,11 @@ limitations under the License.
<item name="android:gravity">center_vertical</item> <item name="android:gravity">center_vertical</item>
</style> </style>
<!-- text micro --> <!-- text micro -->
<style name="TextMicro"> <style name="TextMicro" parent="@style/Text">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textSize">12sp</item> <item name="android:textSize">12sp</item>
</style> </style>
<!-- text small --> <!-- text small -->
<style name="TextSmall"> <style name="TextSmall" parent="@style/Text">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:textSize">14sp</item> <item name="android:textSize">14sp</item>
</style> </style>
<!-- track widget bounding box --> <!-- track widget bounding box -->