Stay organized with collections
Save and categorize content based on your preferences.
CollapsibleActionView
public
interface
CollapsibleActionView
android.view.CollapsibleActionView
|
Known indirect subclasses
SearchView |
A widget that provides a user interface for the user to enter a search query and submit a request
to a search provider.
|
|
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 OnActionExpandListener
.
See MenuItem
for more information about action views.
See ActionBar
for more information about the action bar.
Summary
Public methods
onActionViewCollapsed
public abstract void onActionViewCollapsed ()
Called when this view is collapsed as an action view.
See MenuItem.collapseActionView()
.
onActionViewExpanded
public abstract void onActionViewExpanded ()
Called when this view is expanded as an action view.
See MenuItem.expandActionView()
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CollapsibleActionView\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nCollapsibleActionView\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/CollapsibleActionView \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nCollapsibleActionView\n`\n\n\n`\n\n\n`\n\n|------------------------------------|\n| android.view.CollapsibleActionView |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [SearchView](/reference/android/widget/SearchView) |----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [SearchView](/reference/android/widget/SearchView) | A widget that provides a user interface for the user to enter a search query and submit a request to a search provider. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nWhen a [View](/reference/android/view/View) implements this interface it will receive callbacks\nwhen expanded or collapsed as an action view alongside the optional,\napp-specified callbacks to [OnActionExpandListener](/reference/android/view/MenuItem.OnActionExpandListener).\n\nSee [MenuItem](/reference/android/view/MenuItem) for more information about action views.\nSee [ActionBar](/reference/android/app/ActionBar) for more information about the action bar.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onActionViewCollapsed](/reference/android/view/CollapsibleActionView#onActionViewCollapsed())`() ` Called when this view is collapsed as an action view. |\n| ` abstract void` | ` `[onActionViewExpanded](/reference/android/view/CollapsibleActionView#onActionViewExpanded())`() ` Called when this view is expanded as an action view. |\n\nPublic methods\n--------------\n\n### onActionViewCollapsed\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onActionViewCollapsed ()\n```\n\nCalled when this view is collapsed as an action view.\nSee [MenuItem.collapseActionView()](/reference/android/view/MenuItem#collapseActionView()).\n\n\u003cbr /\u003e\n\n### onActionViewExpanded\n\nAdded in [API level 14](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onActionViewExpanded ()\n```\n\nCalled when this view is expanded as an action view.\nSee [MenuItem.expandActionView()](/reference/android/view/MenuItem#expandActionView()).\n\n\u003cbr /\u003e"]]