我正在尝试在 imageview 中查看 webp 图像,它的大小低于 200kb。但它显示溢出错误
I am trying to view webp image in imageview it's size is below 200kb . but it is showing overflow error
我在 android 应用程序中使用 imageview,我也尝试使用 picasso 但它崩溃了
我正在尝试从
加载它
ImageView hl=(ImageView)findViewById(R.id.homepag);
Picasso.with(getApplicationContext()).load(R.drawable.s1).into(hl);
错误
Process: com.va.androidapp, PID: 6920
java.lang.RuntimeException: Canvas: trying to draw too
large(144000000bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)
图片详情
将图像移动到高分辨率文件夹并检查。像这样的 drawable-xhdpi。
我在 android 应用程序中使用 imageview,我也尝试使用 picasso 但它崩溃了
我正在尝试从
ImageView hl=(ImageView)findViewById(R.id.homepag);
Picasso.with(getApplicationContext()).load(R.drawable.s1).into(hl);
错误
Process: com.va.androidapp, PID: 6920
java.lang.RuntimeException: Canvas: trying to draw too
large(144000000bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)
图片详情
将图像移动到高分辨率文件夹并检查。像这样的 drawable-xhdpi。