我有一个JSON
字符串,其中包含一个名称和一个Url。我需要提取名称并在TextView
中显示,并提取并在ImageView
中显示图像。
以下是上述情况的代码。
public static final String JSON_STRING="{\"WebImages\":{\"Imagename\":\"image_name\",\"imageurl\":http://www.example.com/image/example.png}}";
我需要在创建的 TextView
中显示名称,并从该URL获取图像并在 ImageView
中显示。
}catch (Exception e) {e.printStackTrace();} }
- lazy rabbit