ConsecutiveScroller icon indicating copy to clipboard operation
ConsecutiveScroller copied to clipboard

Canvas: trying to draw too large(557998884bytes) bitmap. 崩溃

Open budaowengd opened this issue 2 years ago • 2 comments

当子view是个ImageView,并且加载大图时,崩溃

Canvas: trying to draw too large(557998884bytes) bitmap.

com.donkingliang.consecutivescroller.ConsecutiveScrollerLayout.draw(ConsecutiveScrollerLayout.java:909)

budaowengd avatar Apr 23 '23 09:04 budaowengd

这是你的图片太大啊。是不是你的图片本身很大,或者把高分辨率的大图放在低分辨率的目录下了。bitmap的大小是有限制的

donkingliang avatar Apr 23 '23 12:04 donkingliang

使用的是网络图片, 使用ScrolView 不会崩溃

budaowengd avatar Apr 28 '23 08:04 budaowengd