use of com.xxx.ency.model.bean.VideoBean in project Ency by xiarunhao123.
the class EyepetizerHotActivity method initialize.
@Override
protected void initialize() {
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
setTitle("热门排行");
Intent intent = getIntent();
Bundle bundle = intent.getExtras();
VideoBean hotVideoBean = (VideoBean) bundle.getSerializable("data");
hotAdapter = new EyepetizerAdapter();
recyclerView.setLayoutManager(new LinearLayoutManager(mContext));
recyclerView.setAdapter(hotAdapter);
hotAdapter.setNewData(hotVideoBean.getItemList());
hotAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
VideoBean.ItemListBean bean = (VideoBean.ItemListBean) adapter.getData().get(position);
VideoBean.ItemListBean.DataBeanX beanX = bean.getData();
Intent intent = new Intent(mContext, EyepetizerDetailActivity.class);
intent.putExtra("data", beanX);
mContext.startActivity(intent);
}
});
}
Aggregations