# android.support.v4.widget

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# android.support.v4.widget

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DrawerLayout.DrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.DrawerListener)                                 | Listener for monitoring events about drawers.                                                                                                                                                                    |
| [NestedScrollView.OnScrollChangeListener](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.OnScrollChangeListener)         | Interface definition for a callback to be invoked when the scroll X or Y positions of a view change.                                                                                                             |
| [SimpleCursorAdapter.CursorToStringConverter](https://developer.android.com/reference/android/support/v4/widget/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](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.ViewBinder)                           | This class can be used by external clients of SimpleCursorAdapter to bind values fom the Cursor to views.                                                                                                        |
| [SlidingPaneLayout.PanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.PanelSlideListener)               | Listener for monitoring events about sliding panes.                                                                                                                                                              |
| [SwipeRefreshLayout.OnChildScrollUpCallback](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnChildScrollUpCallback)   | Classes that wish to override[canChildScrollUp()](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout#canChildScrollUp())method behavior should implement this interface.       |
| [SwipeRefreshLayout.OnRefreshListener](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnRefreshListener)               | Classes that wish to be notified when the swipe gesture correctly triggers a refresh should implement this interface.                                                                                            |
| [TintableCompoundButton](https://developer.android.com/reference/android/support/v4/widget/TintableCompoundButton)                                           | Interface which allows a[CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton.html)to receive tinting calls from`CompoundButtonCompat`when running on API v20 devices or lower. |

## Classes

|------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/AutoScrollHelper)                                                     | AutoScrollHelper is a utility class for adding automatic edge-triggered scrolling to Views.                                                                                                                                                   |
| [CircularProgressDrawable](https://developer.android.com/reference/android/support/v4/widget/CircularProgressDrawable)                                     | Drawable that renders the animated indeterminate progress indicator in the Material design style without depending on API level 11.                                                                                                           |
| [CompoundButtonCompat](https://developer.android.com/reference/android/support/v4/widget/CompoundButtonCompat)                                             | Helper for accessing[CompoundButton](https://developer.android.com/reference/android/widget/CompoundButton.html).                                                                                                                             |
| [ContentLoadingProgressBar](https://developer.android.com/reference/android/support/v4/widget/ContentLoadingProgressBar)                                   | ContentLoadingProgressBar implements a ProgressBar that waits a minimum time to be dismissed before showing.                                                                                                                                  |
| [CursorAdapter](https://developer.android.com/reference/android/support/v4/widget/CursorAdapter)                                                           | Static library support version of the framework's[CursorAdapter](https://developer.android.com/reference/android/widget/CursorAdapter.html).                                                                                                  |
| [DrawerLayout](https://developer.android.com/reference/android/support/v4/widget/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](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.LayoutParams)                                   |                                                                                                                                                                                                                                               |
| [DrawerLayout.SavedState](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SavedState)                                       | State persisted across instances                                                                                                                                                                                                              |
| [DrawerLayout.SimpleDrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SimpleDrawerListener)                   | Stub/no-op implementations of all methods of[DrawerLayout.DrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.DrawerListener).                                                                     |
| [EdgeEffectCompat](https://developer.android.com/reference/android/support/v4/widget/EdgeEffectCompat)                                                     | Helper for accessing[EdgeEffect](https://developer.android.com/reference/android/widget/EdgeEffect.html).                                                                                                                                     |
| [ExploreByTouchHelper](https://developer.android.com/reference/android/support/v4/widget/ExploreByTouchHelper)                                             | ExploreByTouchHelper is a utility class for implementing accessibility support in custom[View](https://developer.android.com/reference/android/view/View.html)s that represent a collection of View-like logical items.                       |
| [ImageViewCompat](https://developer.android.com/reference/android/support/v4/widget/ImageViewCompat)                                                       | Helper for accessing features in[ImageView](https://developer.android.com/reference/android/widget/ImageView.html).                                                                                                                           |
| [ListPopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/ListPopupWindowCompat)                                           | Helper for accessing features in[ListPopupWindow](https://developer.android.com/reference/android/widget/ListPopupWindow.html).                                                                                                               |
| [ListViewAutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/ListViewAutoScrollHelper)                                     | An implementation of[AutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/AutoScrollHelper)that knows how to scroll through a[ListView](https://developer.android.com/reference/android/widget/ListView.html). |
| [ListViewCompat](https://developer.android.com/reference/android/support/v4/widget/ListViewCompat)                                                         | Helper for accessing features in[ListView](https://developer.android.com/reference/android/widget/ListView.html)                                                                                                                              |
| [NestedScrollView](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView)                                                     | NestedScrollView is just like[ScrollView](https://developer.android.com/reference/android/widget/ScrollView.html), but it supports acting as both a nested scrolling parent and child on both new and old versions of Android.                |
| [PopupMenuCompat](https://developer.android.com/reference/android/support/v4/widget/PopupMenuCompat)                                                       | Helper for accessing features in[PopupMenu](https://developer.android.com/reference/android/widget/PopupMenu.html).                                                                                                                           |
| [PopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/PopupWindowCompat)                                                   | Helper for accessing features in[PopupWindow](https://developer.android.com/reference/android/widget/PopupWindow.html).                                                                                                                       |
| [ResourceCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/ResourceCursorAdapter)                                           | Static library support version of the framework's[ResourceCursorAdapter](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html).                                                                                  |
| [ScrollerCompat](https://developer.android.com/reference/android/support/v4/widget/ScrollerCompat)                                                         | *This class was deprecated in API level 26.1.0. Use[OverScroller](https://developer.android.com/reference/android/widget/OverScroller.html)directly.*                                                                                         |
| [SimpleCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter)                                               | Static library support version of the framework's[SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html).                                                                                      |
| [SlidingPaneLayout](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout)                                                   | SlidingPaneLayout provides a horizontal, multi-pane layout for use at the top level of a UI.                                                                                                                                                  |
| [SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams)                         |                                                                                                                                                                                                                                               |
| [SlidingPaneLayout.SimplePanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.SimplePanelSlideListener) | No-op stubs for[SlidingPaneLayout.PanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.PanelSlideListener).                                                                                |
| [Space](https://developer.android.com/reference/android/support/v4/widget/Space)                                                                           | *This class was deprecated in API level 27.1.0. Use framework[Space](https://developer.android.com/reference/android/widget/Space.html)class instead.*                                                                                        |
| [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout)                                                 | The SwipeRefreshLayout should be used whenever the user can refresh the contents of a view via a vertical swipe gesture.                                                                                                                      |
| [TextViewCompat](https://developer.android.com/reference/android/support/v4/widget/TextViewCompat)                                                         | Helper for accessing features in[TextView](https://developer.android.com/reference/android/widget/TextView.html).                                                                                                                             |
| [ViewDragHelper](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper)                                                         | ViewDragHelper is a utility class for writing custom ViewGroups.                                                                                                                                                                              |
| [ViewDragHelper.Callback](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper.Callback)                                       | A Callback is used as a communication channel with the ViewDragHelper back to the parent view using it.                                                                                                                                       |

-

  ## Interfaces

  - [DrawerLayout.DrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.DrawerListener)
  - [NestedScrollView.OnScrollChangeListener](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.OnScrollChangeListener)
  - [SimpleCursorAdapter.CursorToStringConverter](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.CursorToStringConverter)
  - [SimpleCursorAdapter.ViewBinder](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.ViewBinder)
  - [SlidingPaneLayout.PanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.PanelSlideListener)
  - [SwipeRefreshLayout.OnChildScrollUpCallback](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnChildScrollUpCallback)
  - [SwipeRefreshLayout.OnRefreshListener](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.OnRefreshListener)
  - [TintableCompoundButton](https://developer.android.com/reference/android/support/v4/widget/TintableCompoundButton)
-

  ## Classes

  - [AutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/AutoScrollHelper)
  - [CircularProgressDrawable](https://developer.android.com/reference/android/support/v4/widget/CircularProgressDrawable)
  - [CompoundButtonCompat](https://developer.android.com/reference/android/support/v4/widget/CompoundButtonCompat)
  - [ContentLoadingProgressBar](https://developer.android.com/reference/android/support/v4/widget/ContentLoadingProgressBar)
  - [CursorAdapter](https://developer.android.com/reference/android/support/v4/widget/CursorAdapter)
  - [DrawerLayout](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout)
  - [DrawerLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.LayoutParams)
  - [DrawerLayout.SavedState](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SavedState)
  - [DrawerLayout.SimpleDrawerListener](https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.SimpleDrawerListener)
  - [EdgeEffectCompat](https://developer.android.com/reference/android/support/v4/widget/EdgeEffectCompat)
  - [ExploreByTouchHelper](https://developer.android.com/reference/android/support/v4/widget/ExploreByTouchHelper)
  - [ImageViewCompat](https://developer.android.com/reference/android/support/v4/widget/ImageViewCompat)
  - [ListPopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/ListPopupWindowCompat)
  - [ListViewAutoScrollHelper](https://developer.android.com/reference/android/support/v4/widget/ListViewAutoScrollHelper)
  - [ListViewCompat](https://developer.android.com/reference/android/support/v4/widget/ListViewCompat)
  - [NestedScrollView](https://developer.android.com/reference/android/support/v4/widget/NestedScrollView)
  - [PopupMenuCompat](https://developer.android.com/reference/android/support/v4/widget/PopupMenuCompat)
  - [PopupWindowCompat](https://developer.android.com/reference/android/support/v4/widget/PopupWindowCompat)
  - [ResourceCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/ResourceCursorAdapter)
  - [ScrollerCompat](https://developer.android.com/reference/android/support/v4/widget/ScrollerCompat)
  - [SimpleCursorAdapter](https://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter)
  - [SlidingPaneLayout](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout)
  - [SlidingPaneLayout.LayoutParams](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.LayoutParams)
  - [SlidingPaneLayout.SimplePanelSlideListener](https://developer.android.com/reference/android/support/v4/widget/SlidingPaneLayout.SimplePanelSlideListener)
  - [Space](https://developer.android.com/reference/android/support/v4/widget/Space)
  - [SwipeRefreshLayout](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout)
  - [TextViewCompat](https://developer.android.com/reference/android/support/v4/widget/TextViewCompat)
  - [ViewDragHelper](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper)
  - [ViewDragHelper.Callback](https://developer.android.com/reference/android/support/v4/widget/ViewDragHelper.Callback)