Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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