GridViewPager.OnAdapterChangeListener

public static interface GridViewPager.OnAdapterChangeListener

android.support.wearable.view.GridViewPager.OnAdapterChangeListener
Known Indirect Subclasses


回叫接口,用于响应已替换或已移除的适配器。

Summary

Public methods

abstract void onAdapterChanged(GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter)

当适配器更改为 setAdapter(GridPagerAdapter)时调用。

abstract void onDataSetChanged()

当更改当前适配器的内容时调用。

Public methods

onAdapterChanged

void onAdapterChanged (GridPagerAdapter oldAdapter,
                GridPagerAdapter newAdapter)

当适配器更改为 setAdapter(GridPagerAdapter)时调用。

Parameters
oldAdapter GridPagerAdapter
newAdapter GridPagerAdapter

onDataSetChanged

void onDataSetChanged ()

Called when a change is made to the content of the current adapter.