开发者

how to use hashmap value to textview in android?

开发者 https://www.devze.com 2023-04-08 11:05 出处:网络
i have one hashmap.hashmap have different value. i want to display hashmap value in textview. my code is

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

精彩评论

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