public static interface GridViewPager.OnAdapterChangeListener
android.support.wearable.view.GridViewPager.OnAdapterChangeListener |
Known Indirect Subclasses |
回叫接口,用于响应已替换或已移除的适配器。
Public methods |
|
---|---|
abstract void |
onAdapterChanged(GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter) 当适配器更改为 |
abstract void |
onDataSetChanged() 当更改当前适配器的内容时调用。 |
void onAdapterChanged (GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter)
当适配器更改为 setAdapter(GridPagerAdapter)
时调用。
Parameters | |
---|---|
oldAdapter |
GridPagerAdapter
|
newAdapter |
GridPagerAdapter
|
void onDataSetChanged ()
Called when a change is made to the content of the current adapter.