https://github.com/b2b2244424/AndroidStudioSuperPlugin
This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources.
https://github.com/inmite/android-selector-chapek
命名规则:
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
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:
- Right-click folder with your resources e.g ‘drawable-xhdpi’
- Select ‘Generate Android Selectors’(只有drawable相关的文件夹才可以,mipmap是不可以的)
- All selectors automagically appear in the ‘drawable’ folder!
此Android Studio插件能从命名规范的Android资源自动生成drawable选择器。支持多种状态如_pressed, _focused等。安装方法:通过首选项的插件菜单搜索SelectorChapek或直接下载并安装。使用步骤:右击资源文件夹如'drawable-xhdpi',选择'Generate Android Selectors'。
3373

被折叠的 条评论
为什么被折叠?



