2016-06-13 33 views
0

在Android工具欄中,我找到了app:collapseContentDescription,但不知道它是什麼以及如何使用它?工具欄的`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" /> 

有沒有解釋?由於

回答

0

用於設置

文本設置爲摺疊按鈕的內容描述。

看到這個link for More info

內容說明?

定義簡要描述視圖內容的文本。該屬性主要用於可訪問性。由於某些視圖沒有文字表示,因此可以使用此屬性來提供此類屬性。

看到這個link for Content Description

相關問題