Home

Awesome

Android Arsenal

android-selector-intellij-plugin icon

:art: Generate selectors for background drawable.

You can use colorButtonNormal simply,
but make easily touch feedback of normal Views as well as Buttons 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

<color name="colorPrimary">#519FE5</color>
<color name="colorPrimaryDark">#388AC6</color>
<color name="colorAccent">#FFFFFF</color>

screenshot1

screenshot2

ripple drawable is generated in drawable-v21 directory.
normal drawable is generated in drawable directory.

    <android.support.v7.widget.AppCompatButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="16dp"
        android:background="@drawable/<GENERATED_DRAWABLE>"
        android:gravity="center"
        android:minWidth="100dp"
        android:text="pressed" />

Demo

Lollipop >Lollipop <=
demo1demo2

Dependency

License

MIT © Jaewe Heo