mList.clear();
mList.addAll(impress.object.get(0).data);
fragmentList.clear();
for (int i = 0; i < mList.size(); i++) {
fragmentList.add(new PageFragment(mList.get(i)));
}
cartAdapter.notifyDataSetChanged();
After the black screen, swipe again and there will be overlap
我想大声告诉你2017-05-16 13:32:57
@Override
public void onStop() {
ViewGroup parent = (ViewGroup) rootView.getParent();
if (parent != null) {
parent.removeView(rootView);
}
super.onStop();
}
This should be fine.