Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void onClick(Button button) {
- int id = button.getId();
- for (int i = 0, y = mButtons.length; i < y; i++) {
- if (mRadioButtons[i].getId() == id) {
- refresButtons(i);
- }
- }
- }
- private void refreshButtons(int checked) {
- for (int i = 0, y = mButtons.length; i < y; i++) {
- if (i != checked && mButtons[i].(тут проверить что галочка стоит)) {
- buttons[i].setCompoundDrawablesWithIntrinsicBounds(drawableCheckboxOff, null, null, null);
- }
- }
- buttons[checked].setCompoundDrawablesWithIntrinsicBounds(drawableCheckboxOn, null, null, null);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement