点击效果drawable
效果 点击 Drawable
2023-09-27 14:27:46 时间
普通点击效果 写在drawable文件
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true"> <shape android:shape="rectangle"> <solid android:color="#33000000"/> </shape> </item> <item> <shape android:shape="rectangle"> <solid android:color="#FFFFFF"/> </shape> </item> </selector>
涟漪点击效果 写在drawable-v21文件
android:clickable="true"
<?xml version="1.0" encoding="utf-8"?> <ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#33FFFFFF"> <item> <shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape> </item> </ripple>
相关文章
- 使用 ButterKnife 操作无效(不报错、点击后没效果)------代码编写错误
- android自定义view实现progressbar的效果
- android 二维码简化,实现仿qq扫描效果
- ****timeago.js插件:jquery实现几分钟前、几小时前、几天前等时间差显示效果的代码实例
- Android实现水波纹外扩效果
- TouchPoint.js – 可视化展示 HTML 原型点击效果
- Waves – 赞!超炫交互体验的点击动画效果
- Web 开发中很实用的10个效果【附源码下载】
- Photopile JS – 帮助你实现精致的照片堆叠效果
- 前端element-ui组件库el-card卡片【hover效果与点击事件(点击无效用@click.native=““)解决】
- Android OpenGL ES 高斯模糊与毛玻璃效果
- cocos2dx实现转盘旋转外加粒子效果
- 对博弈活动中蕴含的信息论原理的讨论,以及从熵角度看不同词素抽象方式在WEBSHELL文本检测中的效果区别
- android模仿移动MM Tab 点击 背景 滑动效果
- Android CardView 设置点击效果
- WPF 下拉框选项做鼠标 Hover 预览效果
- React Native学习ListView(三):吸顶效果