Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/importre/android-selector-intellij-plugin
:art: Generate selectors for background drawable
https://github.com/importre/android-selector-intellij-plugin
Last synced: 3 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T15:32:17.000Z (almost 9 years ago)
- Last Synced: 2024-08-01T10:16:31.303Z (3 months ago)
- Language: Java
- Homepage: https://plugins.jetbrains.com/plugin/7909
- Size: 268 KB
- Stars: 300
- 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
README
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--selector--intellij--plugin-green.svg?style=flat)](https://android-arsenal.com/details/1/2342)
# android-selector-intellij-plugin ![icon](src/icons/[email protected])
: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.
![screenshot1](images/screenshot1.png)
- Select filename, color, pressed and pressed-v21 respectively.
![screenshot2](images/screenshot2.png)
> 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