Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.appcompat:appcompat:1.0.0-rc01

CollapsibleActionView

public interface CollapsibleActionView

androidx.appcompat.view.CollapsibleActionView


When a View implements this interface it will receive callbacks when expanded or collapsed as an action view alongside the optional, app-specified callbacks to MenuItemCompat.OnActionExpandListener.

See MenuItemCompat for more information about action views. See ActionBar for more information about the action bar.

Summary

Public methods

abstract void onActionViewCollapsed()

Called when this view is collapsed as an action view.

abstract void onActionViewExpanded()

Called when this view is expanded as an action view.

Public methods

onActionViewCollapsed

added in version 1.0.0
public abstract void onActionViewCollapsed ()

Called when this view is collapsed as an action view. See MenuItem.collapseActionView().

onActionViewExpanded

added in version 1.0.0
public abstract void onActionViewExpanded ()

Called when this view is expanded as an action view. See MenuItem.expandActionView().