Search in sources :

Example 1 with NewBangumiSerialAdapter

use of com.hotbitmapgg.bilibili.adapter.NewBangumiSerialAdapter in project bilibili-android-client by HotBitmapGG.

the class NewBangumiSerialActivity method initRecyclerView.

@Override
public void initRecyclerView() {
    mRecyclerView.setHasFixedSize(true);
    mRecyclerView.setLayoutManager(new GridLayoutManager(NewBangumiSerialActivity.this, 3));
    mAdapter = new NewBangumiSerialAdapter(mRecyclerView, newBangumiSerials, true);
    mRecyclerView.setAdapter(mAdapter);
    mAdapter.setOnItemClickListener((position, holder) -> {
    });
}
Also used : NewBangumiSerialAdapter(com.hotbitmapgg.bilibili.adapter.NewBangumiSerialAdapter) GridLayoutManager(android.support.v7.widget.GridLayoutManager)

Aggregations

GridLayoutManager (android.support.v7.widget.GridLayoutManager)1 NewBangumiSerialAdapter (com.hotbitmapgg.bilibili.adapter.NewBangumiSerialAdapter)1