Android.App.ActionBar Members

The members of Android.App.ActionBar are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

abstract
CustomViewAndroid.Views.View.
abstract
DisplayOptionsActionBarDisplayOptions.
Elevationfloat. Get the Z-axis elevation of the action bar in pixels.
[read-only]
abstract
Heightint. Retrieve the current height of the ActionBar.
HideOffsetint. Return the current vertical offset of the action bar.
HideOnContentScrollEnabledbool. Return whether the action bar is configured to scroll out of sight along with a Android.Views.View.NestedScrollingEnabled.
[read-only]
abstract
IsShowingbool.
[read-only]
abstract
NavigationItemCountint. Get the number of navigation items present in the current navigation mode.
abstract
NavigationModeActionBarNavigationMode. Returns the current navigation mode.
[read-only]
abstract
SelectedNavigationIndexint. Get the position of the selected navigation item in list or tabbed navigation modes.
[read-only]
abstract
SelectedTabActionBar.Tab. Returns the currently selected tab if in tabbed navigation mode and there is at least one tab present.
Subtitlestring. Documentation for this section has not yet been entered.
abstract
SubtitleFormattedJava.Lang.ICharSequence. Returns the current ActionBar subtitle in standard mode.
[read-only]
abstract
TabCountint. Returns the number of tabs currently registered with the action bar.
[read-only]
ThemedContextAndroid.Content.Context. Returns a Android.Content.Context with an appropriate theme for creating views that will appear in the action bar.
Titlestring. Documentation for this section has not yet been entered.
abstract
TitleFormattedJava.Lang.ICharSequence. Returns the current ActionBar title in standard mode.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

abstract
AddOnMenuVisibilityListener(ActionBar.IOnMenuVisibilityListener)
Add a listener that will respond to menu visibility change events.
abstract
AddTab(ActionBar.Tab)
Add a tab for use in tabbed navigation mode.
abstract
AddTab(ActionBar.Tab, bool)
Add a tab for use in tabbed navigation mode.
abstract
AddTab(ActionBar.Tab, int)
Add a tab for use in tabbed navigation mode.
abstract
AddTab(ActionBar.Tab, int, bool)
Add a tab for use in tabbed navigation mode.
abstract
GetTabAt(int) : ActionBar.Tab
Returns the tab at the specified index.
abstract
Hide()
Hide the ActionBar if it is currently showing.
abstract
NewTab() : ActionBar.Tab
Create and return a new NoType:android/app/ActionBar$Tab;Href=../../../reference/android/app/ActionBar.Tab.html.
abstract
RemoveAllTabs()
Remove all tabs from the action bar and deselect the current tab.
abstract
RemoveOnMenuVisibilityListener(ActionBar.IOnMenuVisibilityListener)
Remove a menu visibility listener.
abstract
RemoveTab(ActionBar.Tab)
Remove a tab from the action bar.
abstract
RemoveTabAt(int)
Remove a tab from the action bar.
abstract
SelectTab(ActionBar.Tab)
Select the specified tab.
abstract
SetBackgroundDrawable(Android.Graphics.Drawables.Drawable)
Set the ActionBar's background.
abstract
SetCustomView(int)
Set the action bar into custom navigation mode, supplying a view for custom navigation.
abstract
SetCustomView(Android.Views.View, ActionBar.LayoutParams)
Set the action bar into custom navigation mode, supplying a view for custom navigation.
abstract
SetDisplayHomeAsUpEnabled(bool)
Set whether home should be displayed as an "up" affordance.
abstract
SetDisplayOptions(ActionBarDisplayOptions, ActionBarDisplayOptions)
Set selected display options.
abstract
SetDisplayShowCustomEnabled(bool)
Set whether a custom view should be displayed, if set.
abstract
SetDisplayShowHomeEnabled(bool)
Set whether to include the application home affordance in the action bar.
abstract
SetDisplayShowTitleEnabled(bool)
Set whether an activity title/subtitle should be displayed.
abstract
SetDisplayUseLogoEnabled(bool)
Set whether to display the activity logo rather than the activity icon.
SetHomeActionContentDescription(Java.Lang.ICharSequence)
Set an alternate description for the Home/Up action, when enabled.
SetHomeActionContentDescription(int)
Set an alternate description for the Home/Up action, when enabled.
SetHomeActionContentDescription(string)
Documentation for this section has not yet been entered.
SetHomeAsUpIndicator(Android.Graphics.Drawables.Drawable)
Set an alternate drawable to display next to the icon/logo/title when ActionBar.DISPLAY_HOME_AS_UP is enabled.
SetHomeAsUpIndicator(int)
Set an alternate drawable to display next to the icon/logo/title when ActionBar.DISPLAY_HOME_AS_UP is enabled.
SetHomeButtonEnabled(bool)
Enable or disable the "home" button in the corner of the action bar.
abstract
SetIcon(Android.Graphics.Drawables.Drawable)
Set the icon to display in the 'home' section of the action bar.
abstract
SetIcon(int)
Set the icon to display in the 'home' section of the action bar.
abstract
SetListNavigationCallbacks(Android.Widget.ISpinnerAdapter, ActionBar.IOnNavigationListener)
Set the adapter and navigation callback for list navigation mode.
abstract
SetLogo(Android.Graphics.Drawables.Drawable)
Set the logo to display in the 'home' section of the action bar.
abstract
SetLogo(int)
Set the logo to display in the 'home' section of the action bar.
abstract
SetSelectedNavigationItem(int)
Set the selected navigation item in list or tabbed navigation modes.
SetSplitBackgroundDrawable(Android.Graphics.Drawables.Drawable)
Set the ActionBar's split background.
SetStackedBackgroundDrawable(Android.Graphics.Drawables.Drawable)
Set the ActionBar's stacked background.
abstract
SetSubtitle(int)
Set the action bar's subtitle.
abstract
SetTitle(int)
Set the action bar's title.
abstract
Show()
Show the ActionBar if it is not currently showing.

Public Events

MenuVisibilityDocumentation for this section has not yet been entered.