My last blog post is about how to make a favorite button in an Android application. It is wrong, those drawables should not be used independently. Instead, the
@android:drawable/btn_star resource should be used, as it is a
state-drawable and contains all the possible states (checked, unchecked, checked and focused, checked and clicked, ...). The proper way to use this is:
<CheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:button="@android:drawable/btn_star"/>
The result looks exactly like the button used in Android's Contacts application when viewing a contact (upper-right corner).
Man, that took some digging.