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.
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,["# android.support.v7.view\n\nadded in [version 22.1.0](/topic/libraries/support-library/revisions) \n\nandroid.support.v7.view\n=======================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ActionMode.Callback](/reference/android/support/v7/view/ActionMode.Callback) | Callback interface for action modes. |\n| [CollapsibleActionView](/reference/android/support/v7/view/CollapsibleActionView) | When a [View](https://developer.android.com/reference/android/view/View.html) implements this interface it will receive callbacks when expanded or collapsed as an action view alongside the optional, app-specified callbacks to [MenuItemCompat.OnActionExpandListener](/reference/android/support/v4/view/MenuItemCompat.OnActionExpandListener). |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [ActionMode](/reference/android/support/v7/view/ActionMode) | Represents a contextual mode of the user interface. |\n| [ContextThemeWrapper](/reference/android/support/v7/view/ContextThemeWrapper) | A context wrapper that allows you to modify or replace the theme of the wrapped context. |\n\n-\n\n Interfaces\n ----------\n\n - [ActionMode.Callback](/reference/android/support/v7/view/ActionMode.Callback)\n - [CollapsibleActionView](/reference/android/support/v7/view/CollapsibleActionView)\n-\n\n Classes\n -------\n\n - [ActionMode](/reference/android/support/v7/view/ActionMode)\n - [ContextThemeWrapper](/reference/android/support/v7/view/ContextThemeWrapper)"]]