Skip to content

BootsrapButton Group (ButtonMode RADIO) no selection listener #164

Closed
@kisese

Description

@kisese

Hi,
I was facing an issue with selecting gender using a button group of two buttons, I had to resort to the following method.

gender_group.setButtonMode(ButtonMode.RADIO);
    male_btn.setOnTouchListener(new View.OnTouchListener() {
        @Override
        public boolean onTouch(View v, MotionEvent event) {
            Log.e("gender", "Male");
            return false;
        }
    });

Is there a better way to do this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions