Skip to content

Releases: uncn/Banner_disuse

Banner V2.0.7

05 Sep 01:26
Compare
Choose a tag to compare

Update Banner

Banner V2.0.6

05 Sep 00:40
Compare
Choose a tag to compare

Update Banner

Banner V2.0.5

04 Sep 03:18
Compare
Choose a tag to compare

Update Banner

Banner V2.0.4

03 Sep 08:54
Compare
Choose a tag to compare

Update Banner

Banner V2.0.3

03 Sep 08:17
Compare
Choose a tag to compare

Update Banner

Banner V2.0.1

03 Sep 07:40
Compare
Choose a tag to compare

Update Banner

Banner V2.0.0

23 Jul 05:23
Compare
Choose a tag to compare

Add Generics to Banner

Banner V1.0.8

21 Jul 06:33
Compare
Choose a tag to compare

Update Banner

Banner V1.0.7

20 Jul 11:21
Compare
Choose a tag to compare

Update Gradle

Banner V1.0.5

26 Jul 06:26
Compare
Choose a tag to compare

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();
        }
    }
}