use of com.hotbitmapgg.bilibili.adapter.UserHomePagerChaseBangumiAdapter in project bilibili-android-client by HotBitmapGG.
the class UserHomePageFragment method setChaseBangumi.
private void setChaseBangumi() {
int count = mUserChaseBangumiInfo.getData().getCount();
if (count == 0) {
chaseBangumiLayout.setVisibility(View.GONE);
}
List<UserChaseBangumiInfo.DataBean.ResultBean> result = mUserChaseBangumiInfo.getData().getResult();
mChaseBangumiRecycler.setHasFixedSize(false);
mChaseBangumiRecycler.setNestedScrollingEnabled(false);
mChaseBangumiRecycler.setLayoutManager(new GridLayoutManager(getActivity(), 3));
mChaseBangumiRecycler.setAdapter(new UserHomePagerChaseBangumiAdapter(mChaseBangumiRecycler, result));
mChaseBangumiCount.setText(String.valueOf(count));
}
Aggregations