From 6f5dd47ef78be4caf578040ea7d3c3e72ad9df42 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 16 Jul 2014 18:02:47 -0700 Subject: Fix crash on GB by only using system selectable background on ICS+, default to blue Holo version for GB --- res/layout/abstract_fragment_activity.xml | 2 +- res/layout/album_cell_item.xml | 2 +- res/layout/album_list_item.xml | 2 +- res/layout/appwidget4x1.xml | 8 ++++---- res/layout/appwidget4x2.xml | 8 ++++---- res/layout/appwidget4x3.xml | 8 ++++---- res/layout/appwidget4x4.xml | 8 ++++---- res/layout/basic_list_item.xml | 2 +- res/layout/complex_list_item.xml | 2 +- res/layout/notification.xml | 6 +++--- res/layout/notification_expanded.xml | 8 ++++---- res/layout/select_album_header.xml | 2 +- res/layout/song_list_item.xml | 2 +- res/layout/user_list_item.xml | 2 +- res/values-v11/styles.xml | 6 ++++++ res/values/styles.xml | 7 +++++-- 16 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 res/values-v11/styles.xml (limited to 'res') diff --git a/res/layout/abstract_fragment_activity.xml b/res/layout/abstract_fragment_activity.xml index 5f3a592b..0702397f 100644 --- a/res/layout/abstract_fragment_activity.xml +++ b/res/layout/abstract_fragment_activity.xml @@ -15,7 +15,7 @@ android:id="@+id/bottom_bar" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="?android:selectableItemBackground" + style="@style/BasicButton" android:orientation="horizontal"> + style="@style/BasicButton"/> \ No newline at end of file diff --git a/res/layout/album_list_item.xml b/res/layout/album_list_item.xml index 805c9033..aae87638 100644 --- a/res/layout/album_list_item.xml +++ b/res/layout/album_list_item.xml @@ -54,5 +54,5 @@ android:layout_height="fill_parent" android:layout_gravity="right|center_vertical" android:paddingRight="10dip" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> diff --git a/res/layout/appwidget4x1.xml b/res/layout/appwidget4x1.xml index 5d75c9e9..8f52c872 100644 --- a/res/layout/appwidget4x1.xml +++ b/res/layout/appwidget4x1.xml @@ -30,7 +30,7 @@ android:clickable="true" android:focusable="true" android:orientation="vertical" - android:background="?android:selectableItemBackground"> + style="@style/BasicButton"> + style="@style/BasicButton" /> + style="@style/BasicButton" /> diff --git a/res/layout/appwidget4x2.xml b/res/layout/appwidget4x2.xml index 8ec61a59..5763fb01 100644 --- a/res/layout/appwidget4x2.xml +++ b/res/layout/appwidget4x2.xml @@ -32,7 +32,7 @@ android:orientation="vertical" android:paddingTop="4dip" android:paddingBottom="4dip" - android:background="?android:selectableItemBackground"> + style="@style/BasicButton"> + style="@style/BasicButton" /> + style="@style/BasicButton" /> diff --git a/res/layout/appwidget4x3.xml b/res/layout/appwidget4x3.xml index 1758602b..539b9f01 100644 --- a/res/layout/appwidget4x3.xml +++ b/res/layout/appwidget4x3.xml @@ -34,7 +34,7 @@ android:orientation="vertical" android:paddingBottom="4dip" android:paddingTop="4dip" - android:background="?android:selectableItemBackground"> + style="@style/BasicButton"> + style="@style/BasicButton" /> + style="@style/BasicButton" /> diff --git a/res/layout/appwidget4x4.xml b/res/layout/appwidget4x4.xml index b15a7339..1f2db9e1 100644 --- a/res/layout/appwidget4x4.xml +++ b/res/layout/appwidget4x4.xml @@ -35,7 +35,7 @@ android:orientation="vertical" android:paddingTop="4dip" android:paddingBottom="4dip" - android:background="?android:selectableItemBackground"> + style="@style/BasicButton"> + style="@style/BasicButton" /> + style="@style/BasicButton" /> diff --git a/res/layout/basic_list_item.xml b/res/layout/basic_list_item.xml index a49d0c3d..84526324 100644 --- a/res/layout/basic_list_item.xml +++ b/res/layout/basic_list_item.xml @@ -34,5 +34,5 @@ android:layout_height="fill_parent" android:layout_gravity="right|center_vertical" android:paddingRight="10dip" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> \ No newline at end of file diff --git a/res/layout/complex_list_item.xml b/res/layout/complex_list_item.xml index 947b2ee0..421295f2 100644 --- a/res/layout/complex_list_item.xml +++ b/res/layout/complex_list_item.xml @@ -46,5 +46,5 @@ android:layout_height="fill_parent" android:layout_gravity="right|center_vertical" android:paddingRight="10dip" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> \ No newline at end of file diff --git a/res/layout/notification.xml b/res/layout/notification.xml index e4cec6fb..12efa4ec 100644 --- a/res/layout/notification.xml +++ b/res/layout/notification.xml @@ -51,7 +51,7 @@ @@ -91,7 +91,7 @@ android:layout_gravity="center" android:layout_weight="1" android:padding="10dip" - android:background="?android:selectableItemBackground" + style="@style/BasicButton" android:scaleType="fitCenter" android:src="@drawable/notification_previous" /> @@ -102,7 +102,7 @@ android:layout_gravity="center" android:layout_weight="1" android:padding="10dip" - android:background="?android:selectableItemBackground" + style="@style/BasicButton" android:scaleType="fitCenter" android:src="@drawable/notification_pause" /> @@ -113,7 +113,7 @@ android:layout_gravity="center" android:layout_weight="1" android:padding="10dip" - android:background="?android:selectableItemBackground" + style="@style/BasicButton" android:scaleType="fitCenter" android:src="@drawable/notification_next" /> diff --git a/res/layout/select_album_header.xml b/res/layout/select_album_header.xml index eb8346c3..4110d530 100644 --- a/res/layout/select_album_header.xml +++ b/res/layout/select_album_header.xml @@ -80,7 +80,7 @@ android:padding="10dip" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> diff --git a/res/layout/song_list_item.xml b/res/layout/song_list_item.xml index 5b4a2895..fddc714f 100644 --- a/res/layout/song_list_item.xml +++ b/res/layout/song_list_item.xml @@ -102,5 +102,5 @@ android:layout_height="fill_parent" android:layout_gravity="right|center_vertical" android:paddingRight="10dip" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> diff --git a/res/layout/user_list_item.xml b/res/layout/user_list_item.xml index d9b15cd0..c4092894 100644 --- a/res/layout/user_list_item.xml +++ b/res/layout/user_list_item.xml @@ -41,5 +41,5 @@ android:layout_height="fill_parent" android:layout_gravity="right|center_vertical" android:paddingRight="10dip" - android:background="?android:selectableItemBackground"/> + style="@style/BasicButton"/> \ No newline at end of file diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml new file mode 100644 index 00000000..04ab9a85 --- /dev/null +++ b/res/values-v11/styles.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 103e4e49..1ce49e4a 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1,7 +1,10 @@ - + +