CollapsibleActionView

Added in 1.1.0
Deprecated in 1.2.0

public interface CollapsibleActionView

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 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 androidx.core.view.MenuItemCompat.OnActionExpandListener.

See androidx.core.view.MenuItemCompat for more information about action views. See android.app.ActionBar for more information about the action bar.

Summary

Public methods

abstract void

Called when this view is collapsed as an action view.

abstract void

Called when this view is expanded as an action view.

Public methods

onActionViewCollapsed

Added in 1.1.0
Deprecated in 1.2.0
abstract void onActionViewCollapsed()

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

onActionViewExpanded

Added in 1.1.0
Deprecated in 1.2.0
abstract void onActionViewExpanded()

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

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Sep 19, 2024

Android Studio Hedgehog Closed Issues

Updated Dec 13, 2024

With the ability to publish rapidly to over 2 billion active Android devices, Google Play helps you grow a global audience for your apps and games and earn revenue.

Updated Jan 7, 2025