工具栏的 `collapseContentDescription` 有什么作用?
What does `collapseContentDescription` of toolbar do?
在 Android 工具栏中,我找到了 app:collapseContentDescription
但不知道它是什么以及如何使用它?
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:collapseContentDescription="Collapsed" />
有什么解释吗?谢谢
用于设置
Text to set as the content description for the collapse button.
Content Description ?
定义简要描述视图内容的文本。 属性 主要用于辅助功能。由于某些视图没有文本表示,此属性可用于提供此类内容。
在 Android 工具栏中,我找到了 app:collapseContentDescription
但不知道它是什么以及如何使用它?
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_collapseMode="pin"
app:collapseContentDescription="Collapsed" />
有什么解释吗?谢谢
用于设置
Text to set as the content description for the collapse button.
Content Description ?
定义简要描述视图内容的文本。 属性 主要用于辅助功能。由于某些视图没有文本表示,此属性可用于提供此类内容。