獲取ChoiceGroup多選狀態下的值

http://javaeye.5d6d.com/thread-233-1-1.html

怎麼樣獲取ChoiceGroup多選狀態下的值呢?
連我這個做了幾個小項目的程序員,今天都不知道怎麼辦了。
看了api文檔不是很清晰,還是動手實踐下吧。

看代碼就知道了
boolean[] flags = new boolean[this.images.size()];


for(int i=0; i < flags.length; i++){
if(flags)
this.images.getString(i); //這裏得的選中的值,感覺操作麻煩。
}
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章