Condividi tramite


Toolbar.SetCollapseContentDescription(Int32) Method

Definition

Set a content description for the collapse button if one is present.

[Android.Runtime.Register("setCollapseContentDescription", "(I)V", "GetSetCollapseContentDescription_IHandler", ApiSince=29)]
public virtual void SetCollapseContentDescription (int resId);
[<Android.Runtime.Register("setCollapseContentDescription", "(I)V", "GetSetCollapseContentDescription_IHandler", ApiSince=29)>]
abstract member SetCollapseContentDescription : int -> unit
override this.SetCollapseContentDescription : int -> unit

Parameters

resId
Int32

Resource ID of a content description string to set, or 0 to clear the description

Attributes

Remarks

Set a content description for the collapse button if one is present. The content description will be read via screen readers or other accessibility systems to explain the action of the collapse button.

Java documentation for android.widget.Toolbar.setCollapseContentDescription(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to