Sample project showing usage of AutoValue library.
Handles the drawable binding and position on View, EditText, ImageView or TextView. Also can change the icon color, alpha and size using a SelectorDrawable.
Write less code! Don't inflate views, menus, preferences manually anymore!