See Also: ActionProvider Members
An ActionProvider defines rich menu interaction in a single component. ActionProvider can generate action views for use in the action bar, dynamically populate submenus of a MenuItem, and handle default menu item invocations.
An ActionProvider can be optionally specified for a Android.Views.IMenuItem and will be responsible for creating the action view that appears in the Android.App.ActionBar in place of a simple button in the bar. When the menu item is presented in a way that does not allow custom action views, (e.g. in an overflow menu,) the ActionProvider can perform a default action.
There are two ways to use an action provider:
xml Example
<item android:id="@+id/my_menu_item" android:title="Title" android:icon="@drawable/my_menu_item_icon" android:showAsAction="ifRoom" android:actionProviderClass="foo.bar.SomeActionProvider" />