Stay organized with collections
Save and categorize content based on your preferences.
CollapsibleActionView
interface CollapsibleActionView
Known Direct 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 android.app.ActionBar
for more information about the action bar.
Summary
Public methods |
abstract Unit |
Called when this view is collapsed as an action view.
|
abstract Unit |
Called when this view is expanded as an action view.
|
Public methods
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# CollapsibleActionView\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCollapsibleActionView\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/CollapsibleActionView \"View this page in Java\") \n\n```\ninterface CollapsibleActionView\n```\n\n|-----------------------------------------|\n| [android.view.CollapsibleActionView](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [SearchView](../widget/SearchView.html#) |------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [SearchView](../widget/SearchView.html#) | A widget that provides a user interface for the user to enter a search query and submit a request to a search provider. | |\n\nWhen a [View](/reference/kotlin/android/view/View) implements this interface it will receive callbacks when expanded or collapsed as an action view alongside the optional, app-specified callbacks to [OnActionExpandListener](/reference/kotlin/android/view/MenuItem.OnActionExpandListener).\n\nSee [MenuItem](/reference/kotlin/android/view/MenuItem) for more information about action views. See [android.app.ActionBar](../app/ActionBar.html#) for more information about the action bar.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onActionViewCollapsed](#onActionViewCollapsed())`()` Called when this view is collapsed as an action view. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onActionViewExpanded](#onActionViewExpanded())`()` Called when this view is expanded as an action view. |\n\nPublic methods\n--------------\n\n### onActionViewCollapsed\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onActionViewCollapsed(): Unit\n```\n\nCalled when this view is collapsed as an action view. See [MenuItem.collapseActionView()](/reference/kotlin/android/view/MenuItem#collapseActionView()). \n\n### onActionViewExpanded\n\nAdded in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onActionViewExpanded(): Unit\n```\n\nCalled when this view is expanded as an action view. See [MenuItem.expandActionView()](/reference/kotlin/android/view/MenuItem#expandActionView())."]]