https://github.com/importre/android-selector-intellij-plugin
:art: Generate selectors for background drawable
https://github.com/importre/android-selector-intellij-plugin
Last synced: 2 months ago
JSON representation
:art: Generate selectors for background drawable
- Host: GitHub
- URL: https://github.com/importre/android-selector-intellij-plugin
- Owner: importre
- License: mit
- Created: 2015-08-17T07:37:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T15:32:17.000Z (over 9 years ago)
- Last Synced: 2025-02-01T23:51:06.189Z (2 months ago)
- Language: Java
- Homepage: https://plugins.jetbrains.com/plugin/7909
- Size: 268 KB
- Stars: 298
- Watchers: 9
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-android-tools - android-selector-intellij-plugin - Generate selectors for background drawable. (Intellij Plugin)
- awesome-android-tips - android-selector-intellij-plugin
- Android_Data - android-selector
README
[](https://android-arsenal.com/details/1/2342)
# android-selector-intellij-plugin 
:art: Generate selectors for background drawable.You can use `colorButtonNormal` simply,
but make easily touch feedback of normal `View`s as well as `Button`s with this plugin.## Installation
1. open Android Studio(or IntelliJ)
2. Preferences :arrow_right: Plugins :arrow_right: Browse Repositories
3. Search "Android Selector"
4. Click "Install Plugin" button## Usage
- Set your colors(in `res/values/colors.xml`).
```xml
#519FE5
#388AC6
#FFFFFF
```- Select `New -> Android Selector(or Ctrl/Cmd + N)` on your `res` directory.

- Select filename, color, pressed and pressed-v21 respectively.

> ripple drawable is generated in drawable-v21 directory.
> normal drawable is generated in drawable directory.- Use the drawable.
```xml
```## Demo
| Lollipop > | Lollipop <= |
|---------------|----------------|
| ![demo1][d1] | ![demo2][d2] |## Dependency
- com.android.support:appcompat-v7:22.+## License
MIT © [Jaewe Heo][importre][importre]: http://import.re
[d1]: images/demo1.png
[d2]: images/demo2.png