@Override
public Object instantiateItem(View container, int position) {
container.addView(viewList.get(position));
return viewList.get(position);
// TODO Auto-generated method stub
}
@Override
public void destroyItem(View container, int position, Object object) {
// TODO Auto-generated method stub
container.removeView(viewList.get(position));
}
}
报错报告为:
Multiple markers at this line
- The method addView(View) is undefined for the type View
- The method addView(View) is undefined for the type Object
Multiple markers at this line
- The method removeView(View) is undefined for the type View
- The method removeView(View) is undefined for the type View