Double Click Android

1

I'm developing an application that has a list in RecyclerView and the idea is for the person to choose one or more products from this list and change color to show that it is selected, but in case the person chooses the wrong one, a double click. I was able to make it work by using setOnClickListener in the viewHolder, so when I select some product it changes color. I tried to also call setOnLongClickListener until it works, I tried with two different corres, but it is not so easy to use, if you have how to configure to change the time of the long Click can be an option too. If someone has some example of how to implement the onClick function in another class, or if there is already a class I can use. Any information can be helpful. Thank you

    
asked by anonymous 18.09.2017 / 21:55

1 answer

1

Double click is not part of the mobile universe, only desktop with mouse usage, users are not accustomed to this in applications, it is a terrible decision for UX to use this approach in mobile.

One of the best shape is like the image below.

To enable multi-selection the user uses the long press and with a tap selects or deselects items from the list, Open the Gmail app and see how it works, most of the app works this way.

    
18.09.2017 / 22:20