Share via


Toolbar.CollapseIcon Property

Definition

Return the current drawable used as the collapse icon. -or- Set the icon to use for the toolbar's collapse button.

public virtual Android.Graphics.Drawables.Drawable? CollapseIcon { [Android.Runtime.Register("getCollapseIcon", "()Landroid/graphics/drawable/Drawable;", "GetGetCollapseIconHandler", ApiSince=29)] get; [Android.Runtime.Register("setCollapseIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetCollapseIcon_Landroid_graphics_drawable_Drawable_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getCollapseIcon", "()Landroid/graphics/drawable/Drawable;", "GetGetCollapseIconHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setCollapseIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetCollapseIcon_Landroid_graphics_drawable_Drawable_Handler", ApiSince=29)>]
member this.CollapseIcon : Android.Graphics.Drawables.Drawable with get, set

Property Value

The collapse icon drawable

Attributes

Remarks

Property getter documentation:

Return the current drawable used as the collapse icon.

Java documentation for android.widget.Toolbar.getCollapseIcon().

Property setter documentation:

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(android.graphics.drawable.Drawable).

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