I am using this code here to split my radio buttons into rows and columns https://stackoverflow.com/a/2383978/3774526 but I am having a problem.
I can not detect when one of the radio buttons in the ToggleButtonGroupTableLayout
is clicked.
This is what I do:
ToggleButtonGroupTableLayout group;
group = (ToggleButtonGroupTableLayout) findViewById(R.id.group);
group.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Log.d("check", "if clicked");
}
});
nothing inside the onClick function is executed. Any ideas? Thanks