ISchwarz23 / SortableTableView

An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs.
Apache License 2.0
1.05k stars 237 forks source link

Removing onClick #174

Open abusternielsen opened 5 years ago

abusternielsen commented 5 years ago

Is it possible to remove onClick on rows? I have a tablayout, where sliding left and right to change fragment doesn't work properly, because the onClick on rows interfers my tablayout.

I've done this, but it doesn't work:

       TableDataClickListener listener = new TableDataClickListener() {
            @Override
            public void onDataClicked(int rowIndex, Object clickedData) {
            }
        };

        TableDataLongClickListener longListener = new TableDataLongClickListener() {
            @Override
            public boolean onDataLongClicked(int rowIndex, Object clickedData) {
                return false;
            }
        };

        tableView.removeDataClickListener( listener );
        tableView.removeDataLongClickListener( longListener );