ViewPager里的ViewGroup.removeView(View view);与ViewGroup.removeViewAt有什么区别,为什么在自定义的PagerAdapter里destroyItem方法中,用前者没有错误,用后者,则会出现the specified child already have a parent .you must call removeView on the child‘parent first。#Android# #ViewPager#
API:
-
public void removeViewAt(int index)
Re