Language

ActionBar.SetListNavigationCallbacks Method

Definition

Caution

deprecated

This method was deprecated in API level 21.

[Android.Runtime.Register("setListNavigationCallbacks", "(Landroid/widget/SpinnerAdapter;Landroid/app/ActionBar$OnNavigationListener;)V", "GetSetListNavigationCallbacks_Landroid_widget_SpinnerAdapter_Landroid_app_ActionBar_OnNavigationListener_Handler")]
[System.Obsolete("deprecated")]
public abstract void SetListNavigationCallbacks(Android.Widget.ISpinnerAdapter? adapter, Android.App.ActionBar.IOnNavigationListener? callback);
[<Android.Runtime.Register("setListNavigationCallbacks", "(Landroid/widget/SpinnerAdapter;Landroid/app/ActionBar$OnNavigationListener;)V", "GetSetListNavigationCallbacks_Landroid_widget_SpinnerAdapter_Landroid_app_ActionBar_OnNavigationListener_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetListNavigationCallbacks : Android.Widget.ISpinnerAdapter * Android.App.ActionBar.IOnNavigationListener -> unit

Parameters

adapter
ISpinnerAdapter

SpinnerAdapter: An adapter that will provide views both to display the current navigation selection and populate views within the dropdown navigation menu.

callback
ActionBar.IOnNavigationListener

ActionBar.OnNavigationListener: An OnNavigationListener that will receive events when the user selects a navigation item.

Attributes

Remarks

This method was deprecated in API level 21. Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Set the adapter and navigation callback for list navigation mode. The supplied adapter will provide views for the expanded list as well as the currently selected item. (These may be displayed differently.) The supplied OnNavigationListener will alert the application when the user changes the current list selection.

Android reference for android.app.ActionBar.setListNavigationCallbacks.

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