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

ListView/CharmListView touch selection problem #8

Open
ZeroIXI opened this issue Dec 14, 2017 · 0 comments
Open

ListView/CharmListView touch selection problem #8

ZeroIXI opened this issue Dec 14, 2017 · 0 comments

Comments

@ZeroIXI
Copy link

ZeroIXI commented Dec 14, 2017

Hi there,
i discovered that the cell selection in either ListView and CharmListView is not working as expected.

Tested phones:

  • Acer Liquid Zest Plus (Android 6)
  • Samsung Galaxy S8 (Android 7)

Tested samples:

  • Fifty States

While it is working fine in desktop mode, the touch selection on both android versions is only working sporadically. You need to tap rapidly to achieve a selection.

As a workaround for the Listview i implemented a simple mouseClicked listener:
setOnMouseClicked(e -> { System.out.println("Selected Item!!! -> " + cellItem); this.listViewProperty().get().getSelectionModel().select(cellItem); });

The workaround for the CharmListView and CharmListCell was more complex as the cell needs to be aware of its owning listview. The inherited listview property does not contain the listview as i would expect:
tile.setOnMouseClicked(e -> { System.out.println("Selected Item!!! -> " + item); listView.setSelectedItem(item); });

I attach the modified BasicView and USStateCell for further investigation.
fiftystates_modified.zip

Best Regards

HetBenkt added a commit to HetBenkt/HomeFitnessFX that referenced this issue Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant