From 03b58dff821442ebbbd9a25c861dd29d0cbc0af0 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Tue, 25 Jan 2011 17:20:43 -0800 Subject: [PATCH] Use expander assets for bluetooth profile preference. Also adjust some padding and set correct highlight background. Bug: 3383060 Change-Id: I5a4abe98c49efd156523085418958b69df6c8d85 --- res/layout/preference_bluetooth.xml | 3 ++- res/layout/preference_bluetooth_profile.xml | 3 ++- res/layout/user_dictionary_item.xml | 9 +++------ .../settings/bluetooth/BluetoothProfilePreference.java | 6 +++--- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/res/layout/preference_bluetooth.xml b/res/layout/preference_bluetooth.xml index d363dc99eb0..bd437a9a5c7 100644 --- a/res/layout/preference_bluetooth.xml +++ b/res/layout/preference_bluetooth.xml @@ -31,7 +31,6 @@ android:id="@+id/divider" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginRight="8dip" android:layout_gravity="center_vertical" android:src="@drawable/nav_divider" /> @@ -42,6 +41,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" android:src="@drawable/ic_bt_config" /> diff --git a/res/layout/preference_bluetooth_profile.xml b/res/layout/preference_bluetooth_profile.xml index 03f598a23a0..4b6f1dde17a 100644 --- a/res/layout/preference_bluetooth_profile.xml +++ b/res/layout/preference_bluetooth_profile.xml @@ -24,7 +24,6 @@ android:id="@+id/divider" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginRight="8dip" android:layout_gravity="center_vertical" android:src="@drawable/nav_divider" /> @@ -35,6 +34,8 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" + android:padding="8dip" + android:background="?android:attr/selectableItemBackground" android:src="@drawable/icon" /> diff --git a/res/layout/user_dictionary_item.xml b/res/layout/user_dictionary_item.xml index 926068fd93a..3cdeb08f82b 100644 --- a/res/layout/user_dictionary_item.xml +++ b/res/layout/user_dictionary_item.xml @@ -41,13 +41,10 @@ diff --git a/src/com/android/settings/bluetooth/BluetoothProfilePreference.java b/src/com/android/settings/bluetooth/BluetoothProfilePreference.java index 6be1480bdf7..c74012a20e9 100644 --- a/src/com/android/settings/bluetooth/BluetoothProfilePreference.java +++ b/src/com/android/settings/bluetooth/BluetoothProfilePreference.java @@ -80,9 +80,9 @@ public class BluetoothProfilePreference extends Preference implements OnClickLis } else { mProfileExpandView.setOnClickListener(this); mProfileExpandView.setTag(mProfile); - - mProfileExpandView.setImageResource(mExpanded ? R.drawable.ic_preferences_expanded - : R.drawable.ic_preferences_collapsed); + mProfileExpandView.setImageResource(mExpanded + ? com.android.internal.R.drawable.expander_open_holo_dark + : com.android.internal.R.drawable.expander_close_holo_dark); } }