Toolbar.SetLogo(Int32) Method

Definition

Set a logo drawable from a resource id.

[Android.Runtime.Register("setLogo", "(I)V", "GetSetLogo_IHandler")]
public virtual void SetLogo (int resId);
[<Android.Runtime.Register("setLogo", "(I)V", "GetSetLogo_IHandler")>]
abstract member SetLogo : int -> unit
override this.SetLogo : int -> unit

Parameters

resId
Int32

ID of a drawable resource

Attributes

Remarks

Set a logo drawable from a resource id.

This drawable should generally take the place of title text. The logo cannot be clicked. Apps using a logo should also supply a description using #setLogoDescription(int).

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