use of com.hotbitmapgg.bilibili.adapter.AttentionBangumiAdapter in project bilibili-android-client by HotBitmapGG.
the class HomeAttentionFragment method createHeadView.
private void createHeadView() {
View headView = LayoutInflater.from(getActivity()).inflate(R.layout.layout_attention_head_view, mRecyclerView, false);
RecyclerView mBangumiRecycler = (RecyclerView) headView.findViewById(R.id.focus_head_recycler);
mBangumiRecycler.setHasFixedSize(false);
mBangumiRecycler.setNestedScrollingEnabled(false);
mBangumiRecycler.setLayoutManager(new GridLayoutManager(getActivity(), 3));
mBangumiRecycler.setAdapter(new AttentionBangumiAdapter(mBangumiRecycler, chaseBangumis));
mHeaderViewRecyclerAdapter.addHeaderView(headView);
}
Aggregations