PagerAdapter主要用于各个页卡的滑动效果,这个数据源决定了现在显示第几个页卡的内容。BaseAdapter一般用于每个页卡内容的填充。
1、PagerAdapter至少需要重写的方法
但通过API我们可以发现这个类有一下几个方法
2、BaseAdapter至少需要重写的方法
public
int
getCount()
public
Object getItem(
int
arg0)
public
long
getItemId(
int
position)
public
View getView(
int
position, View convertView, ViewGroup parent)