52ky 发表于 2022-11-2 13:13:12

GridView显示网络图片

用GridView来呈现,从自建的tomcat上得到的图片.android端得到服务器下发的xml文件数据,解析后得到图片途径,然后依据图片途径下载保存在tomcat服务器上的图片.点击图片后,可以保存到SD卡的指定方位.注意本项目是选用utf-8编码.假如呈现乱码请转换格式.

(Use GridView to render images obtained from self built tomcat The android terminal gets the xml file data sent by the server, parses it to get the image path, and then downloads the image saved on the tomcat server according to the image path. After clicking the image, it can be saved to the specified location of the SD card. Note that this project uses utf-8 encoding. If the code is garbled, please convert the format)




页: [1]
查看完整版本: GridView显示网络图片