-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
加载10000条数据 #27
Comments
你把发生Anr的日志发给我
发自我的 iPhone
… 在 2019年4月18日,20:28,Allen-cxl ***@***.***> 写道:
加载10000条数据,App直接ANR了。有什么办法解决的吗?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
后来我重新看了下,又没有出现anr。出现了下面问题: 代码片段: |
具体加我qq吧 或者加群 1002326270
发自我的 iPhone
… 在 2019年4月26日,10:10,Allen-cxl ***@***.***> 写道:
后来我重新看了下,又没有出现anr。出现了下面问题:
1.空指针crash
2.上下快速滑动会卡顿,布局会重叠
java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Rect.bottom' on a null object reference at com.test.toastdemo.FlowLayoutManager.fill(FlowLayoutManager.java:191)
at com.test.toastdemo.FlowLayoutManager.scrollVerticallyBy(FlowLayoutManager.java:241)
at android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4680)
代码片段:
RecyclerView.setLayoutManager(new FlowLayoutManager());
RecyclerView.setAdapter(new RecycleViewAdapter(this, Data.foods()));
public static List foods(){
List foods =new ArrayList<>();
Data food = null;
for (int i = 0 ; i < 10000 ; i++){
food = new Data("recycle"+"("+i+")");
foods.add(food);
}
return foods;
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
加载10000条数据,App直接ANR了。有什么办法解决的吗?
The text was updated successfully, but these errors were encountered: