Popularity
7.5
Declining
Activity
0.0
Stable
1,575
57
203

Code Quality Rank: L3
Programming language: Java
License: Apache License 2.0

android-selector-chapek alternatives and similar packages

Based on the "Intellij IDEA / Android Studio" category.
Alternatively, view android-selector-chapek alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of android-selector-chapek or a related project?

Add another 'Intellij IDEA / Android Studio' Package

README

SelectorChapek for Android

This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources.

How to install it:

  • in Android Studio: go to Preferences→Plugins→Browse repositories and search for SelectorChapek

or

  • download it and install via Preferences→Plugins→Install plugin from disk

How to use it:

1) Right-click folder with your resources e.g 'drawable-xhdpi'

[](img/select_folder.png)

2) Select 'Generate Android Selectors'

[](img/select_option.png)

3) All selectors automagically appear in the 'drawable' folder!

[](img/selectors_generated.png)

Naming convention:

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.

Mapping

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

Wishlist

  • UI which will tell you which selectors will be generated
  • possibility to change naming mapping

Pull requests are welcomed!

Why 'Chapek'?

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.