0
任何人都可以幫助我如何將圖像放入散列表?把圖像放在散列表中?
我想是這樣的:
HashMap<String, Object> map = new HashMap<String, Object>();
String img_1 = "<img src='http://graph.facebook.com/" + friends.get(i).getId()
+ "/picture?type=small' />";
map.put("item", Html.fromHtml(img_1));
map.put("friend", friends.get(i).getName());
System.out.println("Valoare HashMap este:" + map);
mylist.add(map);
,但我看到的只是文本,沒有圖像。
請幫助....
你使用webview來顯示圖像嗎? –
我在http://graph.facebook.com/「+ friends.get(i).getId()+」/ picture?type = small我想要顯示的圖像...我試圖顯示圖像和我的朋友在我的android應用程序的名稱...我不知道該怎麼做的圖像:( – Gabrielle
你能幫我嗎? – Gabrielle