android - Viewpager internal shell fragment slides horizontally. After the screen goes black, there is an overlap phenomenon when opened. There is only one fragment, which I reused. Hope God answers
迷茫
迷茫 2017-05-16 13:30:57
0
1
703
 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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
我想大声告诉你
@Override

public void onStop() {
    ViewGroup parent = (ViewGroup) rootView.getParent();
    if (parent != null) {
        parent.removeView(rootView);
    }
    super.onStop();
}

This should be fine.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template