Search in sources :

Example 1 with HomeBangumiSeasonNewSection

use of com.hotbitmapgg.bilibili.adapter.section.HomeBangumiSeasonNewSection in project bilibili-android-client by HotBitmapGG.

the class HomeBangumiFragment method finishTask.

@Override
protected void finishTask() {
    mSwipeRefreshLayout.setRefreshing(false);
    mIsRefreshing = false;
    hideEmptyView();
    Observable.from(banners).compose(bindToLifecycle()).forEach(bannersBean -> bannerList.add(new BannerEntity(bannersBean.getLink(), bannersBean.getTitle(), bannersBean.getImg())));
    mSectionedRecyclerViewAdapter.addSection(new HomeBangumiBannerSection(bannerList));
    mSectionedRecyclerViewAdapter.addSection(new HomeBangumiItemSection(getActivity()));
    mSectionedRecyclerViewAdapter.addSection(new HomeBangumiNewSerialSection(getActivity(), newBangumiSerials));
    if (!bangumibobys.isEmpty()) {
        mSectionedRecyclerViewAdapter.addSection(new HomeBangumiBobySection(getActivity(), bangumibobys));
    }
    mSectionedRecyclerViewAdapter.addSection(new HomeBangumiSeasonNewSection(getActivity(), season, seasonNewBangumis));
    mSectionedRecyclerViewAdapter.addSection(new HomeBangumiRecommendSection(getActivity(), bangumiRecommends));
    mSectionedRecyclerViewAdapter.notifyDataSetChanged();
}
Also used : HomeBangumiItemSection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiItemSection) BannerEntity(com.hotbitmapgg.bilibili.widget.banner.BannerEntity) HomeBangumiSeasonNewSection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiSeasonNewSection) HomeBangumiRecommendSection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiRecommendSection) HomeBangumiNewSerialSection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiNewSerialSection) HomeBangumiBannerSection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiBannerSection) HomeBangumiBobySection(com.hotbitmapgg.bilibili.adapter.section.HomeBangumiBobySection)

Aggregations

HomeBangumiBannerSection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiBannerSection)1 HomeBangumiBobySection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiBobySection)1 HomeBangumiItemSection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiItemSection)1 HomeBangumiNewSerialSection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiNewSerialSection)1 HomeBangumiRecommendSection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiRecommendSection)1 HomeBangumiSeasonNewSection (com.hotbitmapgg.bilibili.adapter.section.HomeBangumiSeasonNewSection)1 BannerEntity (com.hotbitmapgg.bilibili.widget.banner.BannerEntity)1