// Path: app/src/main/java/me/zsj/interessant/IntentManager.java
// public class IntentManager {
// 
//     public static void flyToMovieDetail(final Activity context,
//                                         final ItemList item, final View view) {
//         Picasso.with(context).load(item.data.cover.detail)
//                 .fetch(new Callback() {
//                     @Override
//                     public void onSuccess() {
//                         Intent intent = new Intent(context, MovieDetailActivity.class);
//                         intent.putExtra(PROVIDER_ITEM, item);
//                         ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
//                                 context,
//                                 Pair.create(view, context.getString(R.string.transition_shot)),
//                                 Pair.create(view, context.getString(R.string.transition_shot_background))
//                         );
//                         context.startActivity(intent, options.toBundle());
//                     }
// 
//                     @Override
//                     public void onError() {
//                         Intent intent = new Intent(context, MovieDetailActivity.class);
//                         intent.putExtra(PROVIDER_ITEM, item);
//                         context.startActivity(intent);
//                     }
//                 });
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/common/Holder.java
// public class Holder extends RecyclerView.ViewHolder {
// 
//     public View itemView;
//     public RatioImageView movieAlbum;
//     public TextView movieDesc;
//     public FrameLayout movieContent;
//     public TextView tag;
// 
//     public Holder(View itemView) {
//         super(itemView);
//         this.itemView = itemView;
//         movieContent = (FrameLayout) itemView.findViewById(R.id.movie_content);
//         movieAlbum = (RatioImageView) itemView.findViewById(R.id.movie_album);
//         movieDesc = (TextView) itemView.findViewById(R.id.movie_desc);
//         tag = (TextView) itemView.findViewById(R.id.author_tag);
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/ItemList.java
// public class ItemList implements Parcelable {
// 
//     public String type;
//     public Data data;
// 
//     protected ItemList(Parcel in) {
//         type = in.readString();
//         data = in.readParcelable(Data.class.getClassLoader());
//     }
// 
//     public static final Creator<ItemList> CREATOR = new Creator<ItemList>() {
//         @Override
//         public ItemList createFromParcel(Parcel in) {
//             return new ItemList(in);
//         }
// 
//         @Override
//         public ItemList[] newArray(int size) {
//             return new ItemList[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(type);
//         dest.writeParcelable(data, flags);
//     }
// 
// }


import android.app.Activity;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.jakewharton.rxbinding2.view.RxView;
import java.util.concurrent.TimeUnit;
import me.drakeet.multitype.ItemViewBinder;
import me.zsj.interessant.IntentManager;
import me.zsj.interessant.R;
import me.zsj.interessant.common.Holder;
import me.zsj.interessant.model.ItemList;
package me.zsj.interessant.binder.video;





/**
 * @author zsj
 */

public class VideoViewBinder extends ItemViewBinder<ItemList, Holder> {

    private Activity context;

    public VideoViewBinder(Activity context) {
        this.context = context;
    }

    @NonNull @Override
    protected Holder onCreateViewHolder(
            @NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View view = inflater.inflate(R.layout.item_movie, parent, false);
// Path: app/src/main/java/me/zsj/interessant/IntentManager.java
// public class IntentManager {
// 
//     public static void flyToMovieDetail(final Activity context,
//                                         final ItemList item, final View view) {
//         Picasso.with(context).load(item.data.cover.detail)
//                 .fetch(new Callback() {
//                     @Override
//                     public void onSuccess() {
//                         Intent intent = new Intent(context, MovieDetailActivity.class);
//                         intent.putExtra(PROVIDER_ITEM, item);
//                         ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(
//                                 context,
//                                 Pair.create(view, context.getString(R.string.transition_shot)),
//                                 Pair.create(view, context.getString(R.string.transition_shot_background))
//                         );
//                         context.startActivity(intent, options.toBundle());
//                     }
// 
//                     @Override
//                     public void onError() {
//                         Intent intent = new Intent(context, MovieDetailActivity.class);
//                         intent.putExtra(PROVIDER_ITEM, item);
//                         context.startActivity(intent);
//                     }
//                 });
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/common/Holder.java
// public class Holder extends RecyclerView.ViewHolder {
// 
//     public View itemView;
//     public RatioImageView movieAlbum;
//     public TextView movieDesc;
//     public FrameLayout movieContent;
//     public TextView tag;
// 
//     public Holder(View itemView) {
//         super(itemView);
//         this.itemView = itemView;
//         movieContent = (FrameLayout) itemView.findViewById(R.id.movie_content);
//         movieAlbum = (RatioImageView) itemView.findViewById(R.id.movie_album);
//         movieDesc = (TextView) itemView.findViewById(R.id.movie_desc);
//         tag = (TextView) itemView.findViewById(R.id.author_tag);
//     }
// }
// 
// Path: app/src/main/java/me/zsj/interessant/model/ItemList.java
// public class ItemList implements Parcelable {
// 
//     public String type;
//     public Data data;
// 
//     protected ItemList(Parcel in) {
//         type = in.readString();
//         data = in.readParcelable(Data.class.getClassLoader());
//     }
// 
//     public static final Creator<ItemList> CREATOR = new Creator<ItemList>() {
//         @Override
//         public ItemList createFromParcel(Parcel in) {
//             return new ItemList(in);
//         }
// 
//         @Override
//         public ItemList[] newArray(int size) {
//             return new ItemList[size];
//         }
//     };
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(type);
//         dest.writeParcelable(data, flags);
//     }
// 
// }


// Path: app/src/main/java/me/zsj/interessant/binder/video/VideoViewBinder.java
import android.app.Activity;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.jakewharton.rxbinding2.view.RxView;
import java.util.concurrent.TimeUnit;
import me.drakeet.multitype.ItemViewBinder;
import me.zsj.interessant.IntentManager;
import me.zsj.interessant.R;
import me.zsj.interessant.common.Holder;
import me.zsj.interessant.model.ItemList;

package me.zsj.interessant.binder.video;





/**
 * @author zsj
 */

public class VideoViewBinder extends ItemViewBinder<ItemList, Holder> {

    private Activity context;

    public VideoViewBinder(Activity context) {
        this.context = context;
    }

    @NonNull @Override
    protected Holder onCreateViewHolder(
            @NonNull LayoutInflater inflater, @NonNull ViewGroup parent) {
        View view = inflater.inflate(R.layout.item_movie, parent, false);
        return new Holder(view);