android:contentDescription 的用途
来源:互联网 发布:update sql 两个表 编辑:程序博客网 时间:2024/05/23 19:14
在android控件中有一个属性叫做android:contentDescription 。
一般来说,用户很少使用这个属性。
但是对于一些视力有障碍的用户,android提供给用户一个很有用的功能,可以帮助使用app。
这个属性必须在用户的Accessible 中的相应属性开启后才能使用。
1. 首先下载google的应用 TalkBack (an accessibility service published by Google) 并且将功能打开 Settings > Accessibility > TalkBack 设置为On。
2.在应用中添加这个属性。
- <Button
- android:id=”@+id/pause_button”
- android:src=”@drawable/pause”
- android:contentDescription=”@string/pause”/>
3.由于这个控件没有text属性,对于一些用户来说,无法理解这个控件是做什么的。
这时用户点击这个控件。android系统会自动使用人声朗读控件上android:contentDescription属性说指向的内容。
这样用户就可以知道这个控件是做什么用的。
这个属性的主要功能就是为视力有障碍的人增加对控件的解释
转载自:http://blog.csdn.net/yuxiaohui78/article/details/41206179
0 0
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android:contentDescription 的用途
- android contentDescription的用法
- android contentDescription的使用
- android:contentDescription的作用是什么
- android:contentDescription的作用是什么
- android:contentDescription
- android:contentDescription
- android:contentDescription
- android:contentDescription的作用及使用方法
- URL中文乱码
- java实现斐波那契数列和约瑟夫环
- Eclipse不编译java代码
- BZOJ 1141 POI2009 Slw
- HDU 2181--哈密顿绕行世界问题【DFS】
- android:contentDescription 的用途
- Mysql、SqlServer和Oracle 添加修改删除字段
- Java 时间格式转换为:“2014-09-26T11:21:00+8:00”
- Android getDecorView用途
- 【BZOJ 1345】 [Baltic2007]序列问题Sequence
- 2.3_Comet sockets
- 燕十八老师讲的js,自己做的笔记,有点乱。供以后学习使用。。。。
- Solr Performance Factors(solr性能优化因素分析及配置)
- mybatis 插件 generator 学习