开发者

how to use hashmap value to textview in android?

i have one hashmap.hashmap have different value. i want to display hashmap value in textview.

my code is

Iterator iterator = o开发者_如何学PythonbjJMap.keySet().iterator();
                while (iterator.hasNext()) 
                {      String key = (String) iterator.next();
                    String value1 = objJMap.get(key);  }

how it display in textview?


you want display all hashmap value in a textview? textview set value in java code like this: textview.setText(value1);


You have to create run time text view in while loop and put the value in it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜