-
Notifications
You must be signed in to change notification settings - Fork 109
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
代码片段显示奔溃 #20
Comments
可以提供下出现问题的源文本吗?我周末复现解决下 |
你可以弄一个长一点的代码片段,在recycleView里面加载,多滑动几次,代码片段的那个item的高度就会变化,有时候就会报这个错 |
随便什么代码片段都可以的,在recycleView里面滑动 |
这个项目最近看来问题比较多,后面我找个时间重构下 |
请问这个问题是怎么解决的,我最近也遇到了
|
请问解决了嘛,同问题 |
加载代码片段有时候空格很大,有时候会奔溃 private int getTextInLineLenInRange(CharSequence text, int start, int end, int rs, int re, Paint paint) {
int e = rs;
if (rs > end) {
return end;
}
while (paint.measureText(text, start, e) < mWidth - PADDING * 2) {
e++;
if (e > end || e > re) {
break;
}
}
return e - 1;
} 这个方法会出现数组越界的异常奔溃,请问怎么弄
The text was updated successfully, but these errors were encountered: