Aracılığıyla paylaş


Toolbar.SetCollapseIcon(Int32) Method

Definition

Set the icon to use for the toolbar's collapse button.

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

Parameters

resId
Int32

Resource ID of a drawable to set

Attributes

Remarks

Set the icon to use for the toolbar's collapse button.

The collapse button appears at the start of the toolbar when an action view is present .

Java documentation for android.widget.Toolbar.setCollapseIcon(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