I found this tip how to expose the SelectionModel for multi-selection when using the CharmListView, but my issue is the same even with the normal ListView.
When I do as shown below, I can select (highlight) multiple list items. Using CTRL or SHIFT on the desktop while mouse clicking, I can choose many items instead of just one at a time. When I test on my phone, only single selection behavior is still what I see as I choose one, then another.
How do we multi-select items on a list when on a mobile device?
@FXML
private CharmListView<Widget, Integer> myWidgetListView;
public void initialize() {
Platform.runLater(() -> {
ListView<Widget> innerList = (ListView<Widget>) myWidgetListView.lookup(".list-view");
innerList.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
});
}