Android Studio plugin which automatically generates drawable selectors from appropriately named resources.
APACHE-2.0 License
This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources.
Preferences→Plugins→Browse repositories
and search for SelectorChapek
or
Preferences→Plugins→Install plugin from disk
In order of plugin to work, resources need to be appropriately named. The plugin supports png or nine-patch files with certain suffices anywhere in the file name. You can also combine any suffixes together.
File name suffix | Drawable state |
---|---|
_normal | (default state) |
_pressed | state_pressed |
_focused | state_focused |
_disabled | state_enabled (false) |
_checked | state_checked |
_selected | state_selected |
_hovered | state_hovered |
_checkable | state_checkable |
_activated | state_activated |
_windowfocused | state_window_focused |
Pull requests are welcomed!
Karel Čapek was a famous Czech writer, inventor of the word 'robot'. The word comes from Czech word 'robota', which means 'hard manual labor'. As with Čapek's robots, this plugin will remove your unnecessary manual labor.
See our other Czech personalities who help with #AndroidDev.