Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

get unchecked and checked values from a checkbox  RSS feed

 
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: 598
26
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!