android - 我的 Json 包含图像我想在图像视图中显示它
问题描述
这是我的 json,我想在 Android 的 ImageView 上显示 articleImage。
{"comboDTOArray": [
{
"articleActive": "1",
"articleCode": "0CCE0000230",
"articleImage": "double scoop combo cup.jpg",
"articleName": "Double Cup/Cone",
"articlePrice": "93.22",
"articleType": "Combo",}]}
解决方案
您需要“articleImage”字段中的完整图像 url 和用于将其加载到 ImageView 的图像库
推荐阅读
- nextflow - 使用命令行参数覆盖 Nextflow 参数
- c# - Newtonsoft C# - 自定义日期时间转换为 Google.Protobuf.WellKnownTypes.Timestamp
- python - django API Serializer:无法更新外键字段:响应为 400 Bad Request 由于语法错误,请求无法完成
- python - 警告替换值熊猫
- python-3.x - 从 AWS Lambda Python 映像安装在 Docker 容器上的 Python 库在哪里?
- python - 单击按钮后尝试从文本区域检索数据时 Flask KeyError 400 错误请求
- r - 组合 >100 个 xlsx 文件,由于文件中的列不同,POSIX 日期格式出现问题
- javascript - 如何在数组中传递文件名,然后在 cypress 中迭代文件上传功能
- json - JSON Schema - 设置静态名称
- html - 下拉不同大小问题html css调查表