ArrayList<LoopViewPagerLayout.BannerInfo> bannerInfos = new ArrayList<>(4);
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.a, "第一张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.c, "第二张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<String>("https://avatars2.githubusercontent.com/u/13330076?v=3&u=33de3c989c70716d321d79a99b8d176c7b88349e&s=400", "第三张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.b, "第四张图片"));
<BUG>mLoopViewPagerLayout.setLoopData(bannerInfos, this,this);
</BUG>
mListView.addHeaderView(mLoopViewPagerLayout);
}
@Override

ArrayList<LoopViewPagerLayout.BannerInfo> bannerInfos = new ArrayList<>(4);
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.a, "第一张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.c, "第二张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<String>("https://avatars2.githubusercontent.com/u/13330076?v=3&u=33de3c989c70716d321d79a99b8d176c7b88349e&s=400", "第三张图片"));
bannerInfos.add(new LoopViewPagerLayout.BannerInfo<Integer>(R.mipmap.b, "第四张图片"));
mLoopViewPagerLayout.setLoopData(bannerInfos, this, this);
mListView.addHeaderView(mLoopViewPagerLayout);
}
@Override
