How to get Double tap event using MvxListView in MVVMCROSS android mvvmview model

53 views Asked by At

We are using below for listview we need to catch Double tap event of list in MVVM viewmodel

<MvxListView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:choiceMode="multipleChoice"
    android:layout_alignParentTop="true"
    local:MvxBind="ItemsSource ProductObsList;ItemClick ProductSelectedCommand;SelectedItem MyChosenItem;"
    local:MvxItemTemplate="@layout/_product"/>

please help us with proper solution

1

There are 1 answers

1
Cheesebaron On

ListView doesn't have anything built in for listening to Double Taps and that gesture is not very common in general.

If you absolutely need it, then you would probably want to implement it on your items adding a GestureDetector listening for double taps.

Also, you should really consider switching to RecyclerView instead for better performance.