android中,如果使用imageButton可以在drawable 中设置一个selector,但是imageView设置不起作用
来源:互联网 发布:系统备份还原软件 编辑:程序博客网 时间:2024/06/10 02:18
android中,如果使用imageButton可以在drawable 中设置一个selector,但是imageView设置不起作用,只要把Imageview的src给去掉就成了,src捕获了background本应获得焦点导致,具体原因可查看这两者的区别。
<ImageView android:id="@+id/mute_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:background="@drawable/ic_mute_selector" android:clickable="true" android:contentDescription="@string/app_name" android:src="@null" />
- android中,如果使用imageButton可以在drawable 中设置一个selector,但是imageView设置不起作用
- Android中使用selector动态改变imageView或ImageButton的背景和在GridView中应用
- Android中使用selector动态改变imageView或ImageButton的背景和在GridView中应用
- ImageView设置selector不起作用原因
- Android drawable selector 设置无效
- ImageButton设置头像(在Dialog中使用Gallery)
- Android中ImageView和ImageButton
- android 在xml布局文件中 ImageView ImageButton出现警告
- android selector中设置的属性如何在代码中使用
- android LinearLayout设置selector不起作用解决
- android LinearLayout设置selector不起作用解决
- android LinearLayout设置selector不起作用问题解决方案
- 在InitDialog中设置焦点不起作用 SETFOCUS
- 在InitDialog中设置焦点不起作用 SETFOCUS
- android中ToolBar设置setNavigationOnClickListener()方法不起作用
- android中ToolBar设置setNavigationOnClickListener()方法不起作用
- 在asp.net中,如果设置表格高度100%,但是表格依然不能满屏显示。
- android ImageView 设置背景选择器selector
- verilog实现的红外解码(详细注释)
- RDIFramework.NET(.NET快速信息化系统开发框架) Web版介绍
- 视频图像标准:D1/D2/D3/D4/D5
- CVT在线测试题
- .NET日期格式化
- android中,如果使用imageButton可以在drawable 中设置一个selector,但是imageView设置不起作用
- 8.5内部排序法---分配类排序(基数排序)
- ExtJs关于grid高度自适应浏览器的问题解决办法
- Distinct Subsequences
- 阿里巴巴数据库操作手册-20-固定执行计划-outline
- 如何求两个相交链表的第一个相交结点
- How to build the webkitgtk
- UVa 11294 - Wedding(2-SAT)
- 使用outline固定执行计划