Package icyllis.modernui.widget
Interface ViewPager.OnAdapterChangeListener
- Enclosing class:
ViewPager
public static interface ViewPager.OnAdapterChangeListener
Callback interface for responding to adapter changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAdapterChanged
(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter) Called when the adapter for the given view pager has changed.
-
Method Details
-
onAdapterChanged
void onAdapterChanged(@NonNull ViewPager viewPager, @Nullable PagerAdapter oldAdapter, @Nullable PagerAdapter newAdapter) Called when the adapter for the given view pager has changed.- Parameters:
viewPager
- ViewPager where the adapter change has happenedoldAdapter
- the previously set adapternewAdapter
- the newly set adapter
-