Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch Click Listener not working #414

Open
chirag38-unity opened this issue Jul 4, 2024 · 1 comment
Open

Touch Click Listener not working #414

chirag38-unity opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@chirag38-unity
Copy link

Adding a touch listener to my TableView is not working. I add after remote api and add columns before statically.

@Kalinogorsky
Copy link

The way that worked for me:

  • in XML:

    <com.evrencoskun.tableview.TableView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      app:allow_click_inside_cell="true"
      app:allow_click_inside_column_header="true"
      app:allow_click_inside_row_header="true" />
  • implements ITableViewListener:
    see wiki: 1.6. Creating a ClickListener

  • when creating a table:

      tableView.setTableViewListener(new MyTableViewListener());

    see wiki: 1.7. Setting the ClickListener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants