Hey guys,
Can you please help me with adding a longpointerpress to a list? I need it to be able to react both to just a press and press and hold type of events. So far I have the following:
List listaVehiculos = List(MyListCellRenderer) {
@Override
public void longPointerPress(int x, int y) {
super.longPointerPress(x, y);
//Do something
}
@Override
public void pointerPressed(int x, int y) {
// TODO Auto-generated method stub
super.pointerPressed(x, y);
//Do something else
}
}
The code as it is, responds only to the pointerPressed event but doesn't give any time for the longPointerPressed. I tried adding an ActionListener to the list but for some reason it didn't work.
Thanks a lot for your help.