android 点击按键背景发生变化
来源:互联网 发布:java科学计算器源代码 编辑:程序博客网 时间:2024/05/17 06:28
btn_style.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/btn_pressed" android:state_focused="true" />
<item android:drawable="@drawable/btn_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/btn_normal" />
</selector>
btn_pressed.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/blue" />
</shape>
</item>
</layer-list>
btn_normal.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/news_item_has_read_textcolor" />
</shape>
</item>
<item
android:bottom="1dip"
android:left="1dip"
android:right="1dip"
android:top="1dip">
<shape>
<corners android:radius="5dip" />
<solid android:color="@color/white" />
</shape>
</item>
</layer-list>
- android 点击按键背景发生变化
- 导航栏图标背景颜色随点击发生变化
- Android控件在点击、选择时背景变化(button、listview)
- Android Button按钮点击背景和文字变化
- android Button 点击背景与文字颜色变化效果
- 三个圆形按键点击颜色发生改变
- 设计模式 观察者模式 以Android中TextView文本内容发生变化为背景
- 点击按钮,div发生各种样式变化
- 上边图片跟随点击的图片发生变化,点击图片样式发生变化
- 点击Item时无背景颜色变化
- Android中如何编写图片选择器,实现按点击按钮时按钮的图片或者颜色发生变化
- Android模拟按键点击,实现。。
- Android按下一个按键发生了什么
- 防止每次点击后全局变量初始值发生变化
- Android 查看通讯录Contacts是否发生变化
- android 当环境配置发生变化 例如语言 屏幕变化
- 去掉ListView发生点击时的黄色背景zai
- ListView 点击选中行文字颜色、背景变化
- python2.6升级到2.7过程
- 第十二章 与Spring集成——《跟我学Shiro》
- JAVA名词解释
- SurvivalShooter学习笔记(三.敌人移动)
- Unsupported major.minor version 51.0报错
- android 点击按键背景发生变化
- 献给写作者的 Markdown 新手指南
- 第十三章 RememberMe——《跟我学Shiro》[张开涛]
- CCF认证 201612-3 权限查询
- 欢迎使用CSDN-markdown编辑器
- Tensorflow系列:tf.nn.conv2d
- mysql5.7安装
- 彻底删除Kafka中的topic
- 年龄