use of com.qyh.myblog_android.ui.adapter.VideoContentAdapter in project Qblog_Android by qiaoyhh.
the class VideoContentFragment method initView.
@Override
protected void initView() {
mAdapter = new VideoContentAdapter(R.layout.item_videocontent_view, null);
mLayoutManger = new LinearLayoutManager(mContext);
viewMain.setLayoutManager(mLayoutManger);
viewMain.setHasFixedSize(true);
viewMain.addItemDecoration(new RecyclerViewDecoration(mContext, LinearLayoutManager.HORIZONTAL, R.drawable.divider_mileage));
viewMain.setAdapter(mAdapter);
swipeRefresh.setColorSchemeColors(getResources().getColor(R.color.blue_light), getResources().getColor(R.color.green_light), getResources().getColor(R.color.orange_light), getResources().getColor(R.color.red_light));
swipeRefresh.setOnRefreshListener(this);
mAdapter.setEnableLoadMore(false);
mAdapter.setOnLoadMoreListener(new BaseQuickAdapter.RequestLoadMoreListener() {
@Override
public void onLoadMoreRequested() {
page++;
getVideoList(page, Constants.TYPE_LOADMORE);
}
});
}
Aggregations