setActionView

Set an action view for this menu item. An action view will be displayed in place of an automatically generated menu item element in the UI when this item is shown as an action within a parent.

Note: Setting an action view overrides the action provider provider set via setSupportActionProvider.

Return

This Item so additional setters can be called.

Parameters

view

View to use for presenting this item to the user.

See also


abstract fun setActionView(resId: Int): MenuItem(source)

Set an action view for this menu item. An action view will be displayed in place of an automatically generated menu item element in the UI when this item is shown as an action within a parent.

Note: Setting an action view overrides the action provider provider set via setSupportActionProvider.

Return

This Item so additional setters can be called.

Parameters

resId

Layout resource to use for presenting this item to the user.

See also