Use expander assets for bluetooth profile preference.

Also adjust some padding and set correct highlight background.

Bug: 3383060
Change-Id: I5a4abe98c49efd156523085418958b69df6c8d85
This commit is contained in:
Amith Yamasani
2011-01-25 17:20:43 -08:00
parent 51cd0d6d29
commit 03b58dff82
4 changed files with 10 additions and 11 deletions

View File

@@ -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" />
</LinearLayout>

View File

@@ -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" />
</LinearLayout>

View File

@@ -41,13 +41,10 @@
<ImageView
android:id="@+id/delete_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="16dip"
android:paddingRight="16dip"
android:paddingTop="8dip"
android:paddingBottom="8dip"
android:padding="8dip"
android:src="@drawable/ic_item_delete"
android:background="@android:drawable/list_selector_background"
android:background="?android:attr/selectableItemBackground"
/>
</LinearLayout>

View File

@@ -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);
}
}