Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get unchecked and checked values from a checkbox

 
John ortega
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to print the contents of my checkbox list. Id like to display all the uncheck (false values) and checked (true values) in the order that it appears in the list view. so far i can only get the true values, how can i get the unchecked false values?



 
Stephen M Davies
Greenhorn
Posts: 11
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show your xml file and Adapter implementation?
 
Brian Tkatch
Bartender
Posts: 567
25
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are looking for all checked and unchecked values, you want all values. Perhaps then, instead of getting them separately, you can cycle through all checkboxes and simply check .isChecked() to decide what to do with it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic