added in version 24.1.0
belongs to Maven artifact com.android.support:viewpager:28.0.0-alpha1
belongs to Maven artifact com.android.support:viewpager:28.0.0-alpha1
ViewPager.OnAdapterChangeListener
public
static
interface
ViewPager.OnAdapterChangeListener
android.support.v4.view.ViewPager.OnAdapterChangeListener |
Callback interface for responding to adapter changes.
Summary
Public methods | |
---|---|
abstract
void
|
onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)
Called when the adapter for the given view pager has changed. |
Public methods
onAdapterChanged
added in version 24.1.0
void onAdapterChanged (ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)
Called when the adapter for the given view pager has changed.
Parameters | |
---|---|
viewPager |
ViewPager : ViewPager where the adapter change has happened |
oldAdapter |
PagerAdapter : the previously set adapter |
newAdapter |
PagerAdapter : the newly set adapter
|
Annotations
Interfaces
- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
Classes
- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat