Share via


ActionBar.SetLogo Method

Definition

Overloads

SetLogo(Drawable)

Set the logo to display in the 'home' section of the action bar.

SetLogo(Int32)

Set the logo to display in the 'home' section of the action bar.

SetLogo(Drawable)

Set the logo to display in the 'home' section of the action bar.

[Android.Runtime.Register("setLogo", "(Landroid/graphics/drawable/Drawable;)V", "GetSetLogo_Landroid_graphics_drawable_Drawable_Handler")]
public abstract void SetLogo (Android.Graphics.Drawables.Drawable? logo);
[<Android.Runtime.Register("setLogo", "(Landroid/graphics/drawable/Drawable;)V", "GetSetLogo_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetLogo : Android.Graphics.Drawables.Drawable -> unit

Parameters

logo
Drawable

Drawable to show as a logo.

Attributes

Remarks

Set the logo to display in the 'home' section of the action bar. The action bar will use a logo specified by its style or the activity logo by default.

Whether the home section shows an icon or logo is controlled by the display option #DISPLAY_USE_LOGO.

Java documentation for android.app.ActionBar.setLogo(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.

See also

Applies to

SetLogo(Int32)

Set the logo to display in the 'home' section of the action bar.

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

Parameters

resId
Int32

Resource ID of a drawable to show as a logo.

Attributes

Remarks

Set the logo to display in the 'home' section of the action bar. The action bar will use a logo specified by its style or the activity logo by default.

Whether the home section shows an icon or logo is controlled by the display option #DISPLAY_USE_LOGO.

Java documentation for android.app.ActionBar.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.

See also

Applies to