控件

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所指内容。

猜你喜欢

转载自blog.csdn.net/zsp_android_com/article/details/80463341
今日推荐