Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
importre committed Aug 17, 2015
1 parent 0ef2035 commit d302ad6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions readme.md
Expand Up @@ -5,11 +5,17 @@
## Usage
![screenshot](images/screenshot.png)

1. Select `New -> Android Selector` with your `res` directory.
1. Set filename, color, pressed and pressed-v21.
- Set your colors.
```xml
<color name="colorPrimary">#519FE5</color>
<color name="colorPrimaryDark">#388AC6</color>
<color name="colorAccent">#FFFFFF</color>
```
- Select `New -> Android Selector` with your `res` directory.
- Set filename, color, pressed and pressed-v21.
- ripple drawable is generated in drawable-v21 directory.
- normal drawable is generated in drawable directory.
1. Use the drawable.
- Use the drawable.
```xml
<android.support.v7.widget.AppCompatButton
android:layout_width="wrap_content"
Expand All @@ -23,7 +29,7 @@

## Demo

| Lollipop &lt; | Lollipop &gt;= |
| Lollipop &gt; | Lollipop &lt;= |
|---------------|----------------|
| ![demo1][d1] | ![demo2][d2] |

Expand Down

0 comments on commit d302ad6

Please sign in to comment.