@Override
    public void destroyItem(ViewGroup container, int position,
                            Object object) {
        if (mAllImageMap.containsKey(position)) {
            container.removeView(mAllImageMap.get(position));
        }
    }
@function viewpageradapter
@auther: Created by yinglan
@time: 16/3/16
app/src/main/java/com/yinglan/scrolllayout/demo/viewpager/MainPagerAdapter.java