直接前往內容

最常造訪的網頁

最近瀏覽的網頁

navigation
added in version 22.1.0

android.support.v4.view

Annotations

ViewPager.DecorView Annotation which allows marking of views to be decoration views when added to a view pager. 

Interfaces

ActionProvider.VisibilityListener Listens to changes in visibility as reported by refreshVisibility()
AsyncLayoutInflater.OnInflateFinishedListener  
LayoutInflaterFactory This interface was deprecated in API level 26.1.0. Use LayoutInflater.Factory2 directly.  
MenuItemCompat.OnActionExpandListener This interface was deprecated in API level 26.1.0. Use MenuItem.OnActionExpandListener directly.  
NestedScrollingChild This interface should be implemented by View subclasses that wish to support dispatching nested scrolling operations to a cooperating parent ViewGroup
NestedScrollingChild2 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. 
NestedScrollingParent2 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.OnAdapterChangeListener Callback interface for responding to adapter changes. 
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

AbsSavedState A Parcelable implementation that should be used by inheritance hierarchies to ensure the state of all classes along the chain is saved. 
AccessibilityDelegateCompat Helper for accessing View.AccessibilityDelegate
ActionProvider This class is a mediator for accomplishing a given task, for example sharing a file. 
AsyncLayoutInflater

Helper class for inflating layouts asynchronously. 

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
LayoutInflaterCompat Helper for accessing features in LayoutInflater
MarginLayoutParamsCompat Helper for accessing API features in MarginLayoutParams in a backwards compatible way. 
MenuCompat Helper for accessing features in Menu
MenuItemCompat Helper for accessing features in MenuItem
MotionEventCompat Helper for accessing features in MotionEvent
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
PointerIconCompat Helper for accessing features in PointerIcon in a backwards compatible fashion. 
ScaleGestureDetectorCompat Helper for accessing features in ScaleGestureDetector
VelocityTrackerCompat This class was deprecated in API level 26.1.0. Use VelocityTracker directly.  
ViewCompat Helper for accessing features in View
ViewConfigurationCompat Helper for accessing features in ViewConfiguration
ViewGroupCompat Helper for accessing features in ViewGroup
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
ViewPropertyAnimatorCompat  
ViewPropertyAnimatorListenerAdapter This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener
WindowCompat Helper for accessing features in Window
WindowInsetsCompat Describes a set of insets for window content. 
本網站使用 Cookie 儲存你在此指定的語言和顯示選項偏好設定。

掌握有關 Android 開發人員的最新消息和實用訣竅,協助你製作最受歡迎的 Google Play 內容。

* 必填欄位

訂閱成功!

在 WeChat 上追蹤 Google Developers

你要以瀏覽這個網站嗎?

你要求以顯示這個網頁,但你為此網站指定的語言偏好設定為

是否要變更語言偏好設定並改用瀏覽網站?稍後如要變更語言偏好設定,請利用位在每個網頁最下方的語言選單來調整設定。

你的 API 層級必須達 以上才能存取這個級別

本說明文件已隱藏,因為你為該文件選取的 API 層級為 。使用左側導覽列上方的選取工具即可變更說明文件的 API 層級。

如需進一步瞭解如何為應用程式指定 API 層級的相關資訊,請參閱 Supporting Different Platform Versions (支援不同的平台版本) (英文)。

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)