Guest User

Untitled

a guest
Feb 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public void bonesGroupClicked(View view) {
  2. // Is the button now checked?
  3. boolean checked = ((RadioButton) view).isChecked();
  4.  
  5. // Check which radio button was clicked
  6. switch (view.getId()) {
  7. case R.id.femur:
  8. if (checked)
  9. // if femur is checked
  10. break;
  11. case R.id.ulna:
  12. if (checked)
  13. // if Ulna is checked
  14. break;
  15.  
  16. case R.id.tibia:
  17. if (checked)
  18. //if Tibia is checked
  19. break;
  20. case R.id.humorous:
  21. if (checked)
  22. //if humorous is checked
  23. break;
  24. case R.id.scapula:
  25. if (checked)
  26. //if scapula is checked
  27. break;
  28. }
  29. }
Add Comment
Please, Sign In to add comment