shamanland / floating-action-button

Implementation of a circular button made of paper that lifts and emits ink reactions on press.
http://shamanland.github.io/floating-action-button
Apache License 2.0
371 stars 88 forks source link

This Button not support Selector? #8

Open Gperez88 opened 10 years ago

Gperez88 commented 10 years ago

Example:

<selector xmlns:android="http://schemas.android.com/apk/res/android" android:exitFadeDuration="@android:integer/config_mediumAnimTime" >
    <item android:state_pressed="false" android:state_focused="true" android:drawable="@drawable/list_focused" />
    <item android:state_pressed="true" android:drawable="@drawable/list_pressed" />
    <item android:drawable="@android:color/transparent" />
</selector>
ok3141 commented 10 years ago

It supports only color-selector, not drawable-selector. There is example in latest demo.