Most visited

Recently visited

ViewPager.OnAdapterChangeListener

public static interface ViewPager.OnAdapterChangeListener

android.support.v4.view.ViewPager.OnAdapterChangeListener


回调接口用于响应适配器更改。

Summary

Public methods

abstract void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, PagerAdapter newAdapter)

当给定视图分页器的适配器已更改时调用。

Public methods

onAdapterChanged

void onAdapterChanged (ViewPager viewPager, 
                PagerAdapter oldAdapter, 
                PagerAdapter newAdapter)

当给定视图分页器的适配器已更改时调用。

Parameters
viewPager ViewPager: ViewPager where the adapter change has happened
oldAdapter PagerAdapter: the previously set adapter
newAdapter PagerAdapter: the newly set adapter

Hooray!