Condividi tramite


ActionBar.SetDisplayShowTitleEnabled(Boolean) Method

Definition

Set whether an activity title/subtitle should be displayed.

[Android.Runtime.Register("setDisplayShowTitleEnabled", "(Z)V", "GetSetDisplayShowTitleEnabled_ZHandler")]
public abstract void SetDisplayShowTitleEnabled (bool showTitle);
[<Android.Runtime.Register("setDisplayShowTitleEnabled", "(Z)V", "GetSetDisplayShowTitleEnabled_ZHandler")>]
abstract member SetDisplayShowTitleEnabled : bool -> unit

Parameters

showTitle
Boolean

true to display a title/subtitle if present.

Attributes

Remarks

Set whether an activity title/subtitle should be displayed.

To set several display options at once, see the setDisplayOptions methods.

Java documentation for android.app.ActionBar.setDisplayShowTitleEnabled(boolean).

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

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