contentDescription
该属性于用户Accessible相应属性开后可用。
- 首下google应用TalkBack(an accessibility service published by Google)并Settings > Accessibility > TalkBack设On(打开功能)。
- 控件添该属性
<Button
android:id=”@+id/pause_button”
android:src=”@drawable/pause”
android:contentDescription=”@string/pause”/>
- 此时用户点控件。系统自动人声朗读控件
android:contentDescription
所指内容。