PagerAdapter主要用于各个页卡的滑动效果,这个数据源决定了如今显示第几个页卡的内容。BaseAdapter通常用于每一个页卡内容的填充。
一、PagerAdapter至少须要重写的方法
html
getCount()
code
但经过API咱们能够发现这个类有一下几个方法
get
二、BaseAdapter至少须要重写的方法
it
public
int
getCount()
io
public
Object getItem(
int
arg0)
方法
public
long
getItemId(
int
position)
developer
public
View getView(
int
position, View convertView, ViewGroup parent)