Releases: uncn/Banner_disuse
Releases · uncn/Banner_disuse
Banner V2.0.7
Update Banner
Banner V2.0.6
Update Banner
Banner V2.0.5
Update Banner
Banner V2.0.4
Update Banner
Banner V2.0.3
Update Banner
Banner V2.0.1
Update Banner
Banner V2.0.0
Add Generics to Banner
Banner V1.0.8
Update Banner
Banner V1.0.7
Update Gradle
Banner V1.0.5
Fix the BUG when data.size() ==1,the view do not show.
public void setBannerData(List data) {
setPlaying(false);
mData.clear();
if (data != null && data.size() > 0) {
if (data.size() > 1) {
mData.addAll(data);
mCurrentIndex = mData.size() * 100000;
mBannerAdapter.notifyDataSetChanged();
mRecyclerView.scrollToPosition(mCurrentIndex);
createIndicators();
setPlaying(true);
} else {
mCurrentIndex = 0;
mData.addAll(data);
mBannerAdapter.notifyDataSetChanged();
}
}
}