Condividi tramite


ActionBar.SetTitle(Int32) Method

Definition

Set the action bar's title.

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

Parameters

resId
Int32

Resource ID of title string to set

Attributes

Remarks

Set the action bar's title. This will only be displayed if #DISPLAY_SHOW_TITLE is set.

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

See also

  • TitleFormatted
  • <xref:Android.App.ActionBar.SetDisplayOptions(Android.App.ActionBarDisplayOptions%2c+Android.App.ActionBarDisplayOptions)>