// Path: app/src/main/java/com/github/bigexcalibur/herovideo/ui/widget/sectioned/StatelessSection.java
// public abstract class StatelessSection extends Section
// {
// 
//     /**
//      * Create a Section object with loading/failed states but no header and footer
//      *
//      * @param itemResourceId layout resource for its items
//      */
//     public StatelessSection(int itemResourceId)
//     {
// 
//         super();
//         this.itemResourceId = itemResourceId;
//     }
// 
//     /**
//      * Create a Section object with loading/failed states, a custom header but no footer
//      *
//      * @param headerResourceId layout resource for its header
//      * @param itemResourceId   layout resource for its items
//      */
//     public StatelessSection(int headerResourceId, int itemResourceId)
//     {
// 
//         this(itemResourceId);
//         this.headerResourceId = headerResourceId;
//         this.hasHeader = true;
//     }
// 
//     /**
//      * Create a Section object with loading/failed states, a custom header and footer
//      *
//      * @param headerResourceId layout resource for its header
//      * @param footerResourceId layout resource for its footer
//      * @param itemResourceId   layout resource for its items
//      */
//     public StatelessSection(int headerResourceId, int footerResourceId, int itemResourceId)
//     {
// 
//         this(headerResourceId, itemResourceId);
//         this.footerResourceId = footerResourceId;
//         this.hasFooter = true;
//     }
// 
//     @Override
//     public final void onBindLoadingViewHolder(RecyclerView.ViewHolder holder)
//     {
// 
//         super.onBindLoadingViewHolder(holder);
//     }
// 
//     @Override
//     public final RecyclerView.ViewHolder getLoadingViewHolder(View view)
//     {
// 
//         return super.getLoadingViewHolder(view);
//     }
// 
//     @Override
//     public final void onBindFailedViewHolder(RecyclerView.ViewHolder holder)
//     {
// 
//         super.onBindFailedViewHolder(holder);
//     }
// 
//     @Override
//     public final RecyclerView.ViewHolder getFailedViewHolder(View view)
//     {
// 
//         return super.getFailedViewHolder(view);
//     }
// }
// 
// Path: app/src/main/java/com/github/bigexcalibur/herovideo/util/NumberUtil.java
// public class NumberUtil {
// 
//   public static String converString(int num) {
// 
//     if (num < 100000) {
//       return String.valueOf(num);
//     }
//     String unit = "万";
//     double newNum = num / 10000.0;
// 
//     String numStr = String.format("%." + 1 + "f", newNum);
//     return numStr + unit;
//   }
// }


import android.annotation.SuppressLint;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.github.bigexcalibur.herovideo.R;
import com.github.bigexcalibur.herovideo.mvp.bangumi.model.BangumiAppIndexInfo;
import com.github.bigexcalibur.herovideo.ui.widget.sectioned.StatelessSection;
import com.github.bigexcalibur.herovideo.util.NumberUtil;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
        BangumiAppIndexInfo.ResultBean.PreviousBean.ListBean listBean = seasonNewBangumis.get(position);
        Glide.with(mContext)
                .load(listBean.getCover())
                .centerCrop()
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .placeholder(R.drawable.bili_default_image_tv)
                .dontAnimate()
                .into(itemViewHolder.mImage);

        itemViewHolder.mTitle.setText(listBean.getTitle());
        itemViewHolder.mPlay.setText(NumberUtil.converString(Integer.valueOf(listBean.getFavourites())) + "人追番");

        itemViewHolder.mCardView.setOnClickListener(v -> {

        });
    }

    @Override
    public RecyclerView.ViewHolder getHeaderViewHolder(View view)
    {

        return new HomeBangumiSeasonNewSection.HeaderViewHolder(view);
    }

    @SuppressLint("SetTextI18n")
    @Override
    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder)
    {

        HomeBangumiSeasonNewSection.HeaderViewHolder headerViewHolder = (HomeBangumiSeasonNewSection.HeaderViewHolder) holder;
// Path: app/src/main/java/com/github/bigexcalibur/herovideo/ui/widget/sectioned/StatelessSection.java
// public abstract class StatelessSection extends Section
// {
// 
//     /**
//      * Create a Section object with loading/failed states but no header and footer
//      *
//      * @param itemResourceId layout resource for its items
//      */
//     public StatelessSection(int itemResourceId)
//     {
// 
//         super();
//         this.itemResourceId = itemResourceId;
//     }
// 
//     /**
//      * Create a Section object with loading/failed states, a custom header but no footer
//      *
//      * @param headerResourceId layout resource for its header
//      * @param itemResourceId   layout resource for its items
//      */
//     public StatelessSection(int headerResourceId, int itemResourceId)
//     {
// 
//         this(itemResourceId);
//         this.headerResourceId = headerResourceId;
//         this.hasHeader = true;
//     }
// 
//     /**
//      * Create a Section object with loading/failed states, a custom header and footer
//      *
//      * @param headerResourceId layout resource for its header
//      * @param footerResourceId layout resource for its footer
//      * @param itemResourceId   layout resource for its items
//      */
//     public StatelessSection(int headerResourceId, int footerResourceId, int itemResourceId)
//     {
// 
//         this(headerResourceId, itemResourceId);
//         this.footerResourceId = footerResourceId;
//         this.hasFooter = true;
//     }
// 
//     @Override
//     public final void onBindLoadingViewHolder(RecyclerView.ViewHolder holder)
//     {
// 
//         super.onBindLoadingViewHolder(holder);
//     }
// 
//     @Override
//     public final RecyclerView.ViewHolder getLoadingViewHolder(View view)
//     {
// 
//         return super.getLoadingViewHolder(view);
//     }
// 
//     @Override
//     public final void onBindFailedViewHolder(RecyclerView.ViewHolder holder)
//     {
// 
//         super.onBindFailedViewHolder(holder);
//     }
// 
//     @Override
//     public final RecyclerView.ViewHolder getFailedViewHolder(View view)
//     {
// 
//         return super.getFailedViewHolder(view);
//     }
// }
// 
// Path: app/src/main/java/com/github/bigexcalibur/herovideo/util/NumberUtil.java
// public class NumberUtil {
// 
//   public static String converString(int num) {
// 
//     if (num < 100000) {
//       return String.valueOf(num);
//     }
//     String unit = "万";
//     double newNum = num / 10000.0;
// 
//     String numStr = String.format("%." + 1 + "f", newNum);
//     return numStr + unit;
//   }
// }


// Path: app/src/main/java/com/github/bigexcalibur/herovideo/adapter/section/HomeBangumiSeasonNewSection.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.github.bigexcalibur.herovideo.R;
import com.github.bigexcalibur.herovideo.mvp.bangumi.model.BangumiAppIndexInfo;
import com.github.bigexcalibur.herovideo.ui.widget.sectioned.StatelessSection;
import com.github.bigexcalibur.herovideo.util.NumberUtil;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;

        BangumiAppIndexInfo.ResultBean.PreviousBean.ListBean listBean = seasonNewBangumis.get(position);
        Glide.with(mContext)
                .load(listBean.getCover())
                .centerCrop()
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .placeholder(R.drawable.bili_default_image_tv)
                .dontAnimate()
                .into(itemViewHolder.mImage);

        itemViewHolder.mTitle.setText(listBean.getTitle());
        itemViewHolder.mPlay.setText(NumberUtil.converString(Integer.valueOf(listBean.getFavourites())) + "人追番");

        itemViewHolder.mCardView.setOnClickListener(v -> {

        });
    }

    @Override
    public RecyclerView.ViewHolder getHeaderViewHolder(View view)
    {

        return new HomeBangumiSeasonNewSection.HeaderViewHolder(view);
    }

    @SuppressLint("SetTextI18n")
    @Override
    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder)
    {

        HomeBangumiSeasonNewSection.HeaderViewHolder headerViewHolder = (HomeBangumiSeasonNewSection.HeaderViewHolder) holder;
        setSeasonIcon(headerViewHolder);