use of com.dante.data.model.PigAv in project 91Pop by DanteAndroid.
the class PigAvFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
unbinder = ButterKnife.bind(this, view);
swipeLayout.setOnRefreshListener(this);
AppUtils.setColorSchemeColors(context, swipeLayout);
piaAvAdapter.setWidth(QMUIDisplayHelper.getScreenWidth(context));
recyclerView.setLayoutManager(new LinearLayoutManager(context));
recyclerView.setAdapter(piaAvAdapter);
piaAvAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
PigAv pigAv = (PigAv) adapter.getItem(position);
if (pigAv == null) {
return;
}
Intent intent = new Intent(context, PlayPigAvActivity.class);
intent.putExtra(Keys.KEY_INTENT_PIG_AV_ITEM, pigAv);
startActivityWithAnimotion(intent);
}
});
piaAvAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
presenter.moreVideoList(category.getCategoryValue(), false);
}
});
}
Aggregations