ImageView和TextView的background点击效果
来源:互联网 发布:希捷备份软件 编辑:程序博客网 时间:2024/05/18 03:03
对于ImageView和TextView的background点击效果【仅用一个ImageView的情况】
背景引用
<ImageView android:background="@drawable/<span style="color:#ff0000;">selector_imageview_position_manage</span>" />
背景xml代码 selector_imageview_position_manage
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/<span style="color:#3333ff;">pressed_imageview_position_manage</span>" android:state_pressed="true"/> <item android:drawable="@drawable/<span style="color:#cc33cc;">focus_imageview_position_manage</span>" android:state_focused="true"/> </selector>
按下的效果: pressed_imageview_position_manage
<pre name="code" class="html"><shape xmlns:android="http://schemas.android.com/apk/res/android"><solid android:color="#99FFFFFF" /><paddingandroid:bottom="3dp"android:left="3dp"android:right="3dp"android:top="3dp" /><!-- <cornersandroid:bottomLeftRadius="5dp"android:bottomRightRadius="5dp"android:topLeftRadius="5dp"android:topRightRadius="5dp" /> --></shape>
选中的效果 :focus_imageview_position_manage
<shape xmlns:android="http://schemas.android.com/apk/res/android"><solid android:color="#ff6600" /><paddingandroid:bottom="3dp"android:left="3dp"android:right="3dp"android:top="3dp" /><!-- <cornersandroid:bottomLeftRadius="5dp"android:bottomRightRadius="5dp"android:topLeftRadius="5dp"android:topRightRadius="5dp" /> --></shape>
0 0
- ImageView和TextView的background点击效果
- 旋转ImageView和TextView的效果实现
- 【Android 界面效果32】ImageView中XML属性src和background的区别
- TextView和ImageView的倾斜
- 14ImageView的background和src属性
- ImageView设置background和src的区别
- 安卓ImageView的 src和background
- ImageView的src和background属性区别
- Android自定义点击效果的ImageView
- 自定义控件实现imageview的点击效果
- Android中ImageView的点击变暗效果
- Android 自定义Imageview的点击效果
- Android中ImageView的点击变暗效果
- ImageView点击效果
- ImageView没有点击效果
- textview中点击效果实现,比如点击textview中实现图片和文字的颜色变化(类似于button)
- 实现TextView中link的点击效果
- TextView的点击效果---文字颜色改变
- Android锁屏修改
- 比较常用的sql语句
- 第八周 课后实践:项目二——Time类中的运算符重载
- 安卓解析xml格式字符串
- POJ 2528
- ImageView和TextView的background点击效果
- Java基础:异常
- java权限修饰符
- Android中判断当前网络是否可用
- 第一次使用markdown,谈谈我的看法
- java常量池
- IP简介2
- c#中使用npoi将datagridview中的全部数据导出到excel中去
- maven构建工程(springmvc/ssh/ssm)错误解决大全