Lead:
Want a water ripple effect like 5.0? is not also distressed backward compatibility collapse of the problem, let's take a look at it @............@
1: First write an XML file
Writes the selector's XML under the Drawable folder
<?xml version= "1.0" encoding= "Utf-8"?> <selector xmlns:android=
"http://schemas.android.com/apk/res/" Android >
<item android:drawable= "@color/textcolorsearch" android:state_pressed= "true"/>
< Item android:drawable= "@color/textcolorprimary"/>
</selector>
Then create the Drawcble_21 folder
Create the same file code inside to write the following paragraph:
<?xml version= "1.0" encoding= "Utf-8"?> <ripple xmlns:android=
"http://schemas.android.com/apk/res/" Android "
android:color=" @color/textcolorsearch ">//here is the color value of the diffused water ripple
<item android:drawable=" @color Backgroundprimary "/>
</ripple>
The value inside the 2:color is the press and the normal color
"'
<color name= "Textcolorsearch" > #D2D2D2 </color> <!--Account page font default color--> <color name= "Accountcolor "> #9A9A9A </color> <!--login input box font default color--> <color name=" Edittextcolor "> #404040 </color> <!- -Background default color--> <color name= "backgroundprimary" > #FFFFFF </color> ""