to top
Android APIs
package

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()
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. 
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. 

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
KeyEventCompat Helper for accessing features in KeyEvent 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. 
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. 
ViewCompatKitKat KitKat-specific View API implementation. 
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. 
ViewParentCompatICS ICS-specific ViewParent API implementation. 
WindowCompat Helper for accessing features in Window introduced after API level 4 in a backwards compatible fashion.