Use the new Preference:icon attribute and placeholder for showing icons on the left.

This commit is contained in:
Amith Yamasani
2010-11-17 15:21:18 -08:00
parent 8ba83bf5ff
commit 43a673053f
11 changed files with 17 additions and 136 deletions

View File

@@ -48,7 +48,7 @@ public class BluetoothProfilePreference extends Preference implements OnClickLis
mProfile = profile;
setLayoutResource(R.layout.preference_bluetooth_profile);
setWidgetLayoutResource(R.layout.preference_bluetooth_profile);
setExpanded(false);
}
@@ -73,7 +73,7 @@ public class BluetoothProfilePreference extends Preference implements OnClickLis
protected void onBindView(View view) {
super.onBindView(view);
ImageView btProfile = (ImageView) view.findViewById(R.id.profileIcon);
ImageView btProfile = (ImageView) view.findViewById(android.R.id.icon);
btProfile.setImageDrawable(mProfileDrawable);
mProfileExpandView = (ImageView) view.findViewById(R.id.profileExpand);