Obtaining tap coordinates in TableView

Hello to all :) ,

I have created a TableView and I need to intercept the x coordinate of the tap.

In Corona you can do something like this?

private int touchPositionX;

getListView().setOnTouchListener(new OnTouchListener() {
public boolean onTouch(View view, MotionEvent event) {
touchPositionX = (int)event.getX();
return false;
}
});

getListView().setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
if (touchPositionX < 100) {

Thank you all for the help

RoDAgo

fixed :slight_smile:

Using the tableViewListener

I found the solution thanks to a post by jonjonsson

fixed :slight_smile:

Using the tableViewListener

I found the solution thanks to a post by jonjonsson