gpt4 book ai didi

android - 我正在尝试在 imageview 中查看 webp 图像,它的大小低于 200kb。但它显示溢出错误

转载 作者:行者123 更新时间:2023-11-29 18:46:43 25 4
gpt4 key购买 nike

我在 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)

图像细节 webp is showing overflow error in android imageview

最佳答案

将图像移动到高分辨率文件夹并检查。像那样的 drawable-xhdpi。

关于android - 我正在尝试在 imageview 中查看 webp 图像,它的大小低于 200kb。但它显示溢出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51607631/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com