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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -