inmite/android-selector-chapek
소개
이름 규칙에 맞게 지정된 리소스에서 drawable 셀렉터를 자동으로 생성하는 Android Studio 플러그인입니다.
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSelectorChapek 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 repositoriesand search forSelectorChapek
or
- download it and install via
Preferences→Plugins→Install plugin from disk
How to use it:
- Right-click folder with your resources e.g 'drawable-xhdpi'

- Select 'Generate Android Selectors'

- All selectors automagically appear in the 'drawable' folder!

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.
관련 프로젝트 살펴보기
불러오는 중…