android:state_***的含义
来源:互联网 发布:林瀚的爷爷 知乎 编辑:程序博客网 时间:2024/05/17 05:08
android:state_pressed
是否按下,如一个按钮触摸或者点击。
android:state_focused
是否取得焦点,比如用户选择了一个文本框。
android:state_hovered
光标是否悬停,通常与focused state相同,它是4.0的新特性
android:state_selected
被选中,它与focus state并不完全一样,如一个list view 被选中的时候,它里面的各个子组件可能通过方向键,被选中了。
android:state_checkable
组件是否能被check。如:RadioButton是可以被check的。
android:state_checked
被checked了,如:一个RadioButton可以被check了。
android:state_enabled
能够接受触摸或者点击事件
android:state_activated
被激活
android:state_window_focused
应用程序是否在前台,当有通知栏被拉下来或者一个对话框弹出的时候应用程序就不在前台了
0 0
- android:state_***的含义
- Android中控件的事件——xml设置对应效果state_[pressed,checked,selected,focused]
- android:persistentDrawingCache 的含义
- android:drawSelectorOnTop的含义
- android:layout_weight的含义
- android:layout_weight的含义
- android:layout_weight的含义
- android的dpi含义
- Android的layout_weight的含义
- android:ellipsize属性的含义
- Android中GC_FOR_MALLOC的含义
- android:ellipsize属性的含义
- android--scrollview 高度的含义
- android:ellipsize属性的含义
- android:ellipsize属性的含义
- android:ellipsize属性的含义
- android:ellipsize属性的含义
- android:layout_weight的真实含义
- P2P平台架构基于组件化架构设计
- DOM编程
- Linux内核哈希表分析与应用 -- Linux内核
- 利用树莓派控制步进电机——Python语言
- Spring 依赖的Jar包简介
- android:state_***的含义
- 笔记:linux io 重定向 [马哥linux]
- Python 面向对象编程(一)
- JAVA常用加密
- POJ3164---Command Network
- ADB启动不起来
- 黑苹果Mac系统快捷键修改
- Mysql,Oracle,Java数据类型对应
- ios添加动画的方法