I am using a CheckBoxPrefence with an icon. The icon shows properly on ICS, but not on 2.2. Am I not using this properly?
ICS:

2.2:

pref.xml
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<CheckBoxPreference
android:persistent="false"
android:icon="@drawable/android"
android:title="check box"
android:key="akey">
</CheckBoxPreference>
</PreferenceScreen>
Temp.java
public class Temp extends PreferenceActivity
{
protected void onCreate(Bundle state)
{
super.onCreate(state);
addPreferencesFromResource(R.xml.pref);
}
}
The icon attribute did not exist prior to Android 3.0.
If you look at the documentation for Preference (which is extended by CheckBoxPreference), it says on the right side of the setIcon method that it was introduced in API 11 (Android 3.0).