Freigeben über


Toolbar.SetTitle(Int32) Method

Definition

Set the title of this toolbar.

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

Parameters

resId
Int32

Resource ID of a string to set as the title

Attributes

Remarks

Set the title of this toolbar.

A title should be used as the anchor for a section of content. It should describe or name the content being viewed.

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