Android笔记之Ripple
16lz
2021-01-24
RippleDrawable extends LayerDrawable
- 有边框限制
//api21上有效,api21下无效
?android:attr/selectableItemBackground - 无边框限制
//仅支持api21
?android:attr/selectableItemBackgroundBorderless
自定义ripple背景
@android:id/mask为非透明的遮罩层,否则是无边框的ripple
兼容处理
drawable-v21下ripple
drawable其他处理
更多相关文章
- 【android积累】
- 图片背景平铺
- 自定义shape 渐变色
- RadioButton改变背景颜色
- Android设置背景颜色渐变
- android studio 将背景设置为黑色或者白色
- 如何构建背景渐变的页面
- textView背景颜色
- android 自定义标题栏 titleBar自定义