use of com.hotbitmapgg.bilibili.adapter.UserHomePagerCoinsAdapter in project bilibili-android-client by HotBitmapGG.
the class UserHomePageFragment method setCoins.
private void setCoins() {
int count = mUserCoinsInfo.getData().getCount();
if (count == 0) {
coinsLayout.setVisibility(View.GONE);
}
List<UserCoinsInfo.DataBean.ListBean> list = mUserCoinsInfo.getData().getList();
mCoinsRecycler.setHasFixedSize(false);
mCoinsRecycler.setNestedScrollingEnabled(false);
mCoinsRecycler.setLayoutManager(new GridLayoutManager(getActivity(), 2));
mCoinsRecycler.setAdapter(new UserHomePagerCoinsAdapter(mCoinsRecycler, list));
mCoinsCount.setText(String.valueOf(count));
}
Aggregations