【UI视觉】Android material Ripple 水波 点击效果
来源:互联网 发布:mac战网外服 编辑:程序博客网 时间:2024/05/18 20:09
原代码出自GitHub上一位大神,稍作修改,参考的5.0的标题点击效果而实现
效果图:
使用这个点击效果的好处
1、不需要再为图片定义两套图了(正常,按下),不需要再写selector
2、能节省安装包大小以及代码量
3、自定义水波颜色
<com.example.statebar.widget.MaterialRippleLayout android:layout_width="100dp" android:layout_height="100dp" android:layout_gravity="center_horizontal" android:layout_marginTop="50dp" app:maskColor="#aa000000" android:background="@drawable/shape_purple" > </com.example.statebar.widget.MaterialRippleLayout>
4、Demo地址:http://download.csdn.net/detail/dqmj2/8996347
2 0
- 【UI视觉】Android material Ripple 水波 点击效果
- Android 水波纹点击效果(Ripple Effect)
- Android 水波纹点击效果(Ripple Effect)
- Android 水波纹点击效果(Ripple Effect)
- Android 水波纹点击效果(Ripple Effect)
- Android 水波纹点击效果(Ripple Effect)
- Android 实现水波纹点击效果(Ripple Effect)
- android Ripple effect 点击 水波效果 自定义背景颜色
- (转)Android 水波纹点击效果(Ripple Effect)
- Android Material Design : Ripple Effect水波波纹荡漾的视觉交互设计
- android material design之点击波纹效果(ripple)
- android点击的ripple效果
- Android实现水波纹效果波纹效果(Ripple)
- Android 5.0 MaterialDesign Ripple效果水波纹效果
- Android Ripple 按钮水波纹效果(一)
- Android Ripple 按钮水波纹效果(二)优化
- ripple实现水波纹效果
- 【Android】Android 水波点击效果
- KMP算法复习
- leetcode 106: Construct Binary Tree from Inorder and Postorder Traversal
- VB.NET 输入IP地址的自定义用户控件(上)
- iOS属性字符串NSMutableAttributedString
- JMeter教程
- 【UI视觉】Android material Ripple 水波 点击效果
- 单例模式
- linux c mysql 开发
- http状态码详解
- 几个input必须都填写否则button灰化
- android 调用系统出现activity销毁
- Groovy插件安装
- vs2013调试时总是要加载公共符号
- C++/CLI托管