android - Material Design Ripple/Stay Solid Animation -
is there anyway create animation once ripples stay solid color when contextual actionbar activated?
i able sucessfully using ripple animation combined statelistdrawable, example below:
ripple.xml
<?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/colorprimary"> <item android:id="@android:id/mask" android:drawable="@android:color/white" /> <item android:drawable="@drawable/background_selector"/> </ripple>
background_selector.xml
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_activated="true" android:drawable="@color/colorprimarydark"/> </selector>
Comments
Post a Comment