// Path: app/src/main/java/com/zmj/qvod/adapter/viewholder/MovieCastsViewHolder.java
// public class MovieCastsViewHolder extends BaseViewHolder<MovieDetailBean.CastsBean> {
// 
// 
//     private CircleImageView civCastsPic;
//     private TextView tvCastsName;
//     private TextView tvCastsType;
// 
//     public MovieCastsViewHolder(ViewGroup parent) {
//         super(parent, R.layout.item_movie_casts);
//         civCastsPic = $(R.id.civ_casts_pic);
//         tvCastsName = $(R.id.tv_casts_name);
//         tvCastsType = $(R.id.tv_casts_type);
//     }
// 
//     @Override
//     public void setData(MovieDetailBean.CastsBean data) {
//         super.setData(data);
//         ImageLoader.load(getContext(), data.getAvatars().getLarge(), civCastsPic);
//         tvCastsName.setText(data.getName());
//         //
//         if ("导演".equals(data.getType()))
//             tvCastsType.setText("导演");
//         else
//             tvCastsType.setText("演员");
//         //
//         itemView.setOnClickListener(view -> {
//             //onClick
//             WebViewActivity.startAction(getContext(), data.getAlt());
//         });
//     }
// }


import android.content.Context;
import android.view.ViewGroup;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.zmj.qvod.adapter.viewholder.MovieCastsViewHolder;
import com.zmj.qvod.module.bean.MovieDetailBean;
package com.zmj.qvod.adapter;



/**
 * Created by matt on 2017/4/13.
 */

public class MovieCastsAdapter extends RecyclerArrayAdapter<MovieDetailBean.CastsBean> {

    public MovieCastsAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
// Path: app/src/main/java/com/zmj/qvod/adapter/viewholder/MovieCastsViewHolder.java
// public class MovieCastsViewHolder extends BaseViewHolder<MovieDetailBean.CastsBean> {
// 
// 
//     private CircleImageView civCastsPic;
//     private TextView tvCastsName;
//     private TextView tvCastsType;
// 
//     public MovieCastsViewHolder(ViewGroup parent) {
//         super(parent, R.layout.item_movie_casts);
//         civCastsPic = $(R.id.civ_casts_pic);
//         tvCastsName = $(R.id.tv_casts_name);
//         tvCastsType = $(R.id.tv_casts_type);
//     }
// 
//     @Override
//     public void setData(MovieDetailBean.CastsBean data) {
//         super.setData(data);
//         ImageLoader.load(getContext(), data.getAvatars().getLarge(), civCastsPic);
//         tvCastsName.setText(data.getName());
//         //
//         if ("导演".equals(data.getType()))
//             tvCastsType.setText("导演");
//         else
//             tvCastsType.setText("演员");
//         //
//         itemView.setOnClickListener(view -> {
//             //onClick
//             WebViewActivity.startAction(getContext(), data.getAlt());
//         });
//     }
// }


// Path: app/src/main/java/com/zmj/qvod/adapter/MovieCastsAdapter.java
import android.content.Context;
import android.view.ViewGroup;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.zmj.qvod.adapter.viewholder.MovieCastsViewHolder;
import com.zmj.qvod.module.bean.MovieDetailBean;

package com.zmj.qvod.adapter;



/**
 * Created by matt on 2017/4/13.
 */

public class MovieCastsAdapter extends RecyclerArrayAdapter<MovieDetailBean.CastsBean> {

    public MovieCastsAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new MovieCastsViewHolder(parent);