简体   繁体   English

Android - 从 url 获取图像作为 JSON 并在画廊视图中显示它们

[英]Android - Get Images from url as JSON and display them in Gallery view

I need to get some images located on a url using JSON and then show them in Gallery view.我需要使用 JSON 获取位于 url 上的一些图像,然后在画廊视图中显示它们。 Are there any examples or at least could someone describe me the exact steps?是否有任何示例,或者至少有人可以向我描述确切的步骤?

thx谢谢

  1. Make a web request提出 web 请求
  2. Grab the JSON response and parse it获取 JSON 响应并解析它
  3. Load the Images using their URL使用他们的 URL 加载图像

Use this library to load images into your Gallery View: Android Universal Image Loader使用此库将图像加载到您的画廊视图中: Android Universal Image Loader

Here is one example that can give you complete demo as you need.这是一个示例,可以根据需要为您提供完整的演示。

Read this and Learn it. 阅读并学习它。

Steps are the same given to you by Mr. Paresh Mayani. Paresh Mayani 先生给你的步骤是一样的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM