SuperRecyclerView icon indicating copy to clipboard operation
SuperRecyclerView copied to clipboard

RadioGroup click event

Open aliwaris0572 opened this issue 7 years ago • 1 comments

I have a layout in which each row of my recyclerview contains 5 radio buttons under a radiogroup. I need to override a click listener event of radiogroup and not each radio button. The addClickOnViewListener method from adapter does not support RadioGroup.OnCheckedChangeListener.

Can you please help ??

aliwaris0572 avatar Feb 08 '18 06:02 aliwaris0572

I think you need do on manual way

adapter. addClickOnViewListener(new ViewClickListener<T>() {
  public void onViewClick(View view, int position, T element) {
    if (((RadioButton) view).isChecked()) {
      // store the value
    }
  }
});

Thanks for the info, i will work with this for the next update

nicolkill avatar Feb 13 '18 17:02 nicolkill