- <? XML version= "1.0" encoding="Utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android">
- <solid android:color="@color/colorprimary"/>
- <corners android:radius="10DP" />
- <padding android:left="20DP" android:top="20DP"
- android:right="20DP" android:bottom="20DP" />
- </shape>
- original January 06, 2016 14:09:40
- Label:
- Water Ripple/
- Cool Animation/
- android5-0
Here is the effect of the click
Say how this effect should be implemented, at present I am specialized for more than 5.0 system to create a folder drawable-v21, which placed with water ripple effect of the click Effects:
Write a ripple tag, this is the water ripple effect
<?xml version="1.0" encoding="utf-8"?><ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#FF9e9e9e"> <item android:drawable="@drawable/bg_nomal"/></ripple>
Color is the colour of the tap water ripple, generally recommended ff9e9e9e;
If this click Effect needs the default picture, is the content of drawable, at this time color is preferably drawable color in the darker colors;
For the version below 5.0, it is OK to set the Click Effect of the same name, so that you can add cool water ripple Click Effect on the button above android5.0.
Android5.0 above items will have button click Effect--Water ripple