Skip to content

Most visited

Recently visited

navigation

android.support.v4.view

Support android.util classes to assist with development of applications for android API level 4 or later. The main features here are a variety of classes for handling backwards compatibility with views (for example MotionEventCompat allows retrieving multi-touch data if available), and a new ViewPager widget (which at some point should be moved over to the widget package).

Interfaces

ActionProvider.VisibilityListener Listens to changes in visibility as reported by refreshVisibility()
LayoutInflaterFactory Used with LayoutInflaterCompat.setFactory()
MenuItemCompat.OnActionExpandListener Interface definition for a callback to be invoked when a menu item marked with SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW is expanded or collapsed. 
NestedScrollingChild This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup
NestedScrollingParent This interface should be implemented by ViewGroup subclasses that wish to support scrolling operations delegated by a nested child view. 
OnApplyWindowInsetsListener Listener for applying window insets on a view in a custom way. 
ScrollingView An interface that can be implemented by Views to provide scroll related APIs. 
TintableBackgroundView Interface which allows a View to receive background tinting calls from ViewCompat when running on API v20 devices or lower. 
ViewPager.OnPageChangeListener Callback interface for responding to changing state of the selected page. 
ViewPager.PageTransformer A PageTransformer is invoked whenever a visible/attached page is scrolled. 
ViewPropertyAnimatorListener

An animation listener receives notifications from an animation. 

ViewPropertyAnimatorUpdateListener Implementors of this interface can add themselves as update listeners to an ViewPropertyAnimatorCompat instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that ViewPropertyAnimatorCompat

Classes

AccessibilityDelegateCompat Helper for accessing View.AccessibilityDelegate introduced after API level 4 in a backwards compatible fashion. 
ActionProvider This class is a mediator for accomplishing a given task, for example sharing a file. 
GestureDetectorCompat Detects various gestures and events using the supplied MotionEvents. 
GravityCompat Compatibility shim for accessing newer functionality from Gravity
InputDeviceCompat Helper class for accessing values in InputDevice
KeyEventCompat Helper for accessing features in KeyEvent introduced after API level 4 in a backwards compatible fashion. 
LayoutInflaterCompat Helper for accessing features in LayoutInflater introduced after API level 4 in a backwards compatible fashion. 
MarginLayoutParamsCompat Helper for accessing API features in MarginLayoutParams added after API 4. 
MenuCompat Helper for accessing features in Menu introduced after API level 4 in a backwards compatible fashion. 
MenuItemCompat Helper for accessing features in MenuItem introduced after API level 4 in a backwards compatible fashion. 
MotionEventCompat Helper for accessing features in MotionEvent introduced after API level 4 in a backwards compatible fashion. 
NestedScrollingChildHelper Helper class for implementing nested scrolling child views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21). 
NestedScrollingParentHelper Helper class for implementing nested scrolling parent views compatible with Android platform versions earlier than Android 5.0 Lollipop (API 21). 
PagerAdapter Base class providing the adapter to populate pages inside of a ViewPager
PagerTabStrip PagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager
PagerTitleStrip PagerTitleStrip is a non-interactive indicator of the current, next, and previous pages of a ViewPager
ScaleGestureDetectorCompat Helper for accessing features in ScaleGestureDetector introduced after API level 19 (KitKat) in a backwards compatible fashion. 
VelocityTrackerCompat Helper for accessing features in VelocityTracker introduced after API level 4 in a backwards compatible fashion. 
ViewCompat Helper for accessing features in View introduced after API level 4 in a backwards compatible fashion. 
ViewConfigurationCompat Helper for accessing features in ViewConfiguration introduced after API level 4 in a backwards compatible fashion. 
ViewGroupCompat Helper for accessing features in ViewGroup introduced after API level 4 in a backwards compatible fashion. 
ViewPager Layout manager that allows the user to flip left and right through pages of data. 
ViewPager.LayoutParams Layout parameters that should be supplied for views added to a ViewPager. 
ViewPager.SavedState This is the persistent state that is saved by ViewPager. 
ViewPager.SimpleOnPageChangeListener Simple implementation of the ViewPager.OnPageChangeListener interface with stub implementations of each method. 
ViewParentCompat Helper for accessing features in ViewParent introduced after API level 4 in a backwards compatible fashion. 
ViewPropertyAnimatorCompat  
ViewPropertyAnimatorListenerAdapter This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener
WindowCompat Helper for accessing features in Window introduced after API level 4 in a backwards compatible fashion. 
WindowInsetsCompat Describes a set of insets for window content. 
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

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.