TableView icon indicating copy to clipboard operation
TableView copied to clipboard

ClickListener can not respond to click events correctly

Open Joker-zou opened this issue 5 years ago • 4 comments

Hi, I have some trouble in clicklistener,it seems to can not respond to click events correctly in the newest version(0.8.9.2).

The code in constructor can be run,but code in all listeners like onCellClicked,onColumnHeaderClicked and other of them will do nothing. Just like this public MyTableViewListener(Context context){ this.context = context; //can run Toast.makeText(context, "entry listener", Toast.LENGTH_SHORT).show(); } @Override public void onCellClicked(@NonNull RecyclerView.ViewHolder cellView, int columnPosition, int rowPosition) { //can not run Toast.makeText(context, "click", Toast.LENGTH_SHORT).show(); }

But I notice that another older version can correctly response all click events. (about 10/2017)

So I don't know if I'm using it the wrong way,can you help me solve this problem? thanks~

Joker-zou avatar Nov 11 '20 03:11 Joker-zou

I am having a similar issue, but only with onCellClicked. onColumnHeaderClicked and onRowHeaderClicked are working as expected.

spencerhowell avatar Jan 07 '21 17:01 spencerhowell

@spencerhowell I am facing similar issue, @evrencoskun please suggest from work around

sajaljain avatar Jan 14 '21 05:01 sajaljain

@Joker-zou @spencerhowell @sajaljain if I remember correctly, there was a change of behaviour introduced in version 0.8.9.2. Can you try to add any of these on your TableView to see if it works:

app:allow_click_inside_cell="true"
app:allow_click_inside_row_header="true"
app:allow_click_inside_column_header="true"

MGaetan89 avatar Jan 16 '21 17:01 MGaetan89

@Joker-zou @spencerhowell @sajaljain if I remember correctly, there was a change of behaviour introduced in version 0.8.9.2. Can you try to add any of these on your TableView to see if it works:

app:allow_click_inside_cell="true"
app:allow_click_inside_row_header="true"
app:allow_click_inside_column_header="true"

Yes,it works

gaochuntie avatar Jul 27 '23 11:07 gaochuntie