【发布时间】:2021-06-19 17:58:24
【问题描述】:
我对位图有疑问。 我调用方法:
mStickerListener.onStickerClick(
BitmapFactory.decodeResource(getResources(),
Integer.parseInt(stickerList.get(getLayoutPosition()))));
但问题是我的stickerList.get(getLayoutPosition())))返回字符串值(链接),因为我用毕加索显示图像,所以我得到了异常:
java.lang.NumberFormatException: For input string: "https://firebasestorage.googleapis.com/v0/b/templatestest-38e3f.appspot.com/o/templates%2Fanimals_templates%2Fdog.png?alt=media&token=3e31962f-df24-493a-91c9-273f3496fa89"
请帮我解决!
【问题讨论】: