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


import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.github.bigexcalibur.herovideo.R;
import com.github.bigexcalibur.herovideo.ui.widget.sectioned.StatelessSection;
import butterknife.BindView;
import butterknife.ButterKnife;
    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder)
    {

        HomeBangumiItemSection.TopItemViewHolder topItemViewHolder = (HomeBangumiItemSection.TopItemViewHolder) holder;
//        //前往追番
//        topItemViewHolder.mChaseBangumi.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, ChaseBangumiActivity.class)));
//        //前往番剧放送表
//        topItemViewHolder.mBangumiSchedule.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, BangumiScheduleActivity.class)));
//        //前往番剧索引
//        topItemViewHolder.mBangumiIndex.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, BangumiIndexActivity.class)));
    }


    static class EmptyViewHolder extends RecyclerView.ViewHolder
    {

        EmptyViewHolder(View itemView)
        {

            super(itemView);
        }
    }


    static class TopItemViewHolder extends RecyclerView.ViewHolder
    {

// 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/adapter/section/HomeBangumiItemSection.java
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.github.bigexcalibur.herovideo.R;
import com.github.bigexcalibur.herovideo.ui.widget.sectioned.StatelessSection;
import butterknife.BindView;
import butterknife.ButterKnife;

    public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder)
    {

        HomeBangumiItemSection.TopItemViewHolder topItemViewHolder = (HomeBangumiItemSection.TopItemViewHolder) holder;
//        //前往追番
//        topItemViewHolder.mChaseBangumi.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, ChaseBangumiActivity.class)));
//        //前往番剧放送表
//        topItemViewHolder.mBangumiSchedule.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, BangumiScheduleActivity.class)));
//        //前往番剧索引
//        topItemViewHolder.mBangumiIndex.setOnClickListener(v -> mContext.startActivity(
//                new Intent(mContext, BangumiIndexActivity.class)));
    }


    static class EmptyViewHolder extends RecyclerView.ViewHolder
    {

        EmptyViewHolder(View itemView)
        {

            super(itemView);
        }
    }


    static class TopItemViewHolder extends RecyclerView.ViewHolder
    {

        @BindView(R.id.layout_chase_bangumi)