Material Design Button波纹效果
来源:互联网 发布:驱动注入源码 编辑:程序博客网 时间:2024/05/18 17:43
波纹效果(Ripple):自带需要在android L也就是5.0之后生效。
1.android:background=“?android:attr/selectableItemBackground”波纹有边界
2.android:background=“?android:attr/selectableItemBackgroundBorderless”波纹超出边界,就是一个圆型
详细:博客地址:http://blog.csdn.net/qq_16628781/article/details/51505263
还有一种是直接ripple修改添加shape:
<?xml version="1.0" encoding="utf-8"?><ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/colorPrimary" > <item > <shape> <solid android:color="@color/colorPrimary"></solid> <corners android:radius="6dp"></corners> </shape> </item></ripple>
一样也是有波纹的圆角
阅读全文
0 0
- Material Design Button波纹效果
- material design 之 ripple(波纹)效果
- android material design之点击波纹效果(ripple)
- Material Design Button 的 disable 效果
- 实现Material Design水波效果的Button
- design点击波纹效果
- 为什么我的Material Design风格列表点击时没有波纹扩散效果
- Material Design Ripple Button
- Android 自定义Button波纹效果
- Android riple material 点击水波纹效果
- Material Design效果实现
- 如何实现Button水波纹效果-Android 5.0 material design Reveal效果
- Material Design——Touch feedback Ripple波纹动画
- Material Design之动画效果
- Material Design一些效果实现
- Material Design效果实践记录
- Material Design动画:涟漪效果
- Material Design动画效果思路
- 第四周项目三—单链表应用
- 使用子查询检索数据
- 单独给sql server的自定义函数授权
- 安装Selenium2Library步骤以及加载Selenium2Library时为红色
- C#反射(Reflection)
- Material Design Button波纹效果
- spring cloud踩坑日志(2)-日志文件的配置
- 第七周项目二建立链队算法库
- 第七周项目5-排队看病模拟
- linux软件安装指南
- 多线程之Condition
- 13.关于memcpy
- Flex 布局教程:语法篇
- Java中数据类型及其之间的转换