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.