03 2014 档案
摘要:这几天做项目用到了ViewPager,因为它可以实现左右划动多个页面的效果,然后再每个页面里使用ListView,运行时总是出现”PagerAdapter java.lang.IllegalStateException:The specified child already has a parent. You must call removeView() ..."造成程序结束。 调试时显示在PagerAdapter适配器的:@Override public Object instantiateItem(ViewGroup container, int position) ...
阅读全文

浙公网安备 33010602011771号