1.继承自PagerAdapter 的时候必须重写方法,否则会报异常。
destoryItem(...)自动添加的super.destoryItem(...)必须注释
2.instantiateItem(...)方法返回的是单个视图,若是直接返回ViewGroup类型是不会显示数据的
3.ViewPager不能getChildCount(),得到数据会是0
1.继承自PagerAdapter 的时候必须重写方法,否则会报异常。
destoryItem(...)自动添加的super.destoryItem(...)必须注释
2.instantiateItem(...)方法返回的是单个视图,若是直接返回ViewGroup类型是不会显示数据的
3.ViewPager不能getChildCount(),得到数据会是0