android 按钮特效 波纹
Android button effects ripple
作者:韩梦飞沙
Author:han_meng_fei_sha
邮箱:313134555@qq.com
E-mail: 313134555 @qq.com
在drawable下 新建一个xml文件,比如ripple.xml
Create a new XML file, such as ripple. XML, under drawable
内容如下:
The contents are as follows:
====================
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#FF9e9e9e">
<item android:drawable="@drawable/psb"/>
</ripple>
====================
其中
<item android:drawable="@drawable/psb"/>
是自己定制的波纹效果的背景图片. 可有可无。
Among them
The < item android: drawable = "@ drawable/PSB" / >
A background image of your own custom ripple effects.
按钮背景改成这个。就行了。
I'm going to change the button to this.Will do.