修复首页排行榜闪退问题
This commit is contained in:
parent
62ed0ae78e
commit
06d241c66c
@ -86,9 +86,11 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
|||||||
mRefreshView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
|
mRefreshView.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.VERTICAL, false));
|
||||||
loadData = list -> {
|
loadData = list -> {
|
||||||
Log.i("测试", "onData: " + list.size());
|
Log.i("测试", "onData: " + list.size());
|
||||||
hv.setData(list.get(0), 0);
|
for (int i = 0; i < list.size(); i++) {
|
||||||
hv.setData(list.get(1), 1);
|
if (i < 3) {
|
||||||
hv.setData(list.get(2), 2);
|
hv.setData(list.get(i), i);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
rootView.addOnOffsetChangedListener(new AppBarLayout.BaseOnOffsetChangedListener() {
|
rootView.addOnOffsetChangedListener(new AppBarLayout.BaseOnOffsetChangedListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user