Conflict List

In my application, I put listfield on the screen. Now my problem is that when I click on the list item (while the list item is focused on it), it activates the menu.

I want to disable the menu by clicking the list. I want that by clicking on a list item, it should only perform the desired task defined in the item's click event. The menu with it is not displayed.

Does any body have any idea about this?

+3
source share
1 answer

Override navigationClick()for ListFieldto use the click event (should return true) without calling super.navigationClick():

protected boolean navigationClick(int status, int time) {
    Status.show("Clicked on item: " + myList.getSelectedIndex());
    return true;
}
+7
source

All Articles