Adapter
//创建接口
public interface ViewholderInterface{
void vh(Movies.ResultBean resultBean);
}
//声明接口名
private ViewholderInterface mViewholderInterface;
//暴露方法
public void setViewholderInterface(ViewholderInterface viewholderInterface){
mViewholderInterface=viewholderInterface;
}
//点击条目跳转=====onBind
viewholder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mViewholderInterface.vh(list.get(i));
}
});
接收值的Activity页面
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.facebook.drawee.view.SimpleDraweeView;
import com.wanghuiqi20181130.bean.Movies;
import org.greenrobot.eventbu