Skip to content

Most visited

Recently visited

navigation
added in version 22.0.0

android.support.v4.widget

Support android.widget classes to assist with development of applications for android API level 4 or later. This includes a complete modern implementation of CursorAdapter and related classes, which is needed for use with CursorLoader.

Interfaces

DrawerLayout.DrawerListener Listener for monitoring events about drawers. 
NestedScrollView.OnScrollChangeListener Interface definition for a callback to be invoked when the scroll X or Y positions of a view change. 
SearchViewCompat.OnCloseListener This interface was deprecated in API level 26.0.0-alpha1. Use SearchView.OnCloseListener instead.  
SearchViewCompat.OnQueryTextListener This interface was deprecated in API level 26.0.0-alpha1. Use SearchView.OnQueryTextListener instead.  
SimpleCursorAdapter.CursorToStringConverter This class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String. 
SimpleCursorAdapter.ViewBinder This class can be used by external clients of SimpleCursorAdapter to bind values fom the Cursor to views. 
SlidingPaneLayout.PanelSlideListener Listener for monitoring events about sliding panes. 
SwipeRefreshLayout.OnChildScrollUpCallback Classes that wish to override canChildScrollUp() method behavior should implement this interface. 
SwipeRefreshLayout.OnRefreshListener Classes that wish to be notified when the swipe gesture correctly triggers a refresh should implement this interface. 
TintableCompoundButton Interface which allows a CompoundButton to receive tinting calls from CompoundButtonCompat when running on API v20 devices or lower. 

Classes

AutoScrollHelper AutoScrollHelper is a utility class for adding automatic edge-triggered scrolling to Views. 
CompoundButtonCompat Helper for accessing CompoundButton methods introduced after API level 4 in a backwards compatible fashion. 
ContentLoadingProgressBar ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed before showing. 
CursorAdapter Static library support version of the framework's CursorAdapter
DrawerLayout DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from one or both vertical edges of the window. 
DrawerLayout.LayoutParams  
DrawerLayout.SavedState State persisted across instances  
DrawerLayout.SimpleDrawerListener Stub/no-op implementations of all methods of DrawerLayout.DrawerListener
EdgeEffectCompat Helper for accessing EdgeEffect in a backwards compatible fashion. 
ExploreByTouchHelper ExploreByTouchHelper is a utility class for implementing accessibility support in custom Views that represent a collection of View-like logical items. 
ImageViewCompat Helper for accessing features in ImageView introduced in later platform releases in a backwards compatible fashion. 
ListPopupWindowCompat Helper for accessing features in ListPopupWindow in a backwards compatible fashion. 
ListViewAutoScrollHelper An implementation of AutoScrollHelper that knows how to scroll through a ListView
ListViewCompat Helper for accessing features in ListView  
NestedScrollView NestedScrollView is just like ScrollView, but it supports acting as both a nested scrolling parent and child on both new and old versions of Android. 
PopupMenuCompat Helper for accessing features in PopupMenu in a backwards compatible fashion. 
PopupWindowCompat Helper for accessing features in PopupWindow in a backwards compatible fashion. 
ResourceCursorAdapter Static library support version of the framework's ResourceCursorAdapter
ScrollerCompat This class was deprecated in API level 26.0.0-beta1. Use OverScroller directly.  
SearchViewCompat This class was deprecated in API level 26.0.0-alpha1. Use SearchView directly.  
SearchViewCompat.OnCloseListenerCompat This class was deprecated in API level 24.2.0. Use SearchView.OnCloseListener instead.  
SearchViewCompat.OnQueryTextListenerCompat This class was deprecated in API level 24.2.0. Use SearchView.OnQueryTextListener instead.  
SimpleCursorAdapter Static library support version of the framework's SimpleCursorAdapter
SlidingPaneLayout SlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI. 
SlidingPaneLayout.LayoutParams  
SlidingPaneLayout.SimplePanelSlideListener No-op stubs for SlidingPaneLayout.PanelSlideListener
Space Space is a lightweight View subclass that may be used to create gaps between components in general purpose layouts. 
SwipeRefreshLayout The SwipeRefreshLayout should be used whenever the user can refresh the contents of a view via a vertical swipe gesture. 
TextViewCompat Helper for accessing features in TextView in a backwards compatible fashion. 
ViewDragHelper ViewDragHelper is a utility class for writing custom ViewGroups. 
ViewDragHelper.Callback A Callback is used as a communication channel with the ViewDragHelper back to the parent view using it. 
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.