Search in sources :

Example 1 with RecyclerBaseAdapter

use of com.example.gsyvideoplayer.adapter.RecyclerBaseAdapter in project GSYVideoPlayer by CarGuo.

the class RecyclerView2Activity method initView.

private void initView() {
    linearLayoutManager = new LinearLayoutManager(this);
    listItemRecycler.setLayoutManager(linearLayoutManager);
    resolveData();
    recyclerBaseAdapter = new RecyclerBaseAdapter(this, dataList);
    listItemRecycler.setAdapter(recyclerBaseAdapter);
    listVideoUtil = new ListVideoUtil(this);
    listVideoUtil.setFullViewContainer(videoFullContainer);
    listVideoUtil.setHideStatusBar(true);
    recyclerBaseAdapter.setListVideoUtil(listVideoUtil);
}
Also used : ListVideoUtil(com.shuyu.gsyvideoplayer.utils.ListVideoUtil) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) RecyclerBaseAdapter(com.example.gsyvideoplayer.adapter.RecyclerBaseAdapter)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 RecyclerBaseAdapter (com.example.gsyvideoplayer.adapter.RecyclerBaseAdapter)1 ListVideoUtil (com.shuyu.gsyvideoplayer.utils.ListVideoUtil)1