android 觸及時的水波紋效果

<?xml version="1.0" encoding="utf-8"?>
<ripple
xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#000000">
<!--ripple中的color為點擊時的顏色-->
<!--基本顏色-->
<item>
<color android:color="#dddddd"/>
</item>
</ripple>
<ImageView
android:id="@+id/grid_cd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/cd_example"/>
view raw ripple.xml hosted with ❤ by GitHub

留言

這個網誌中的熱門文章

android service作法

android app之間使用socket做溝通

html css & bootstrap心得