idanatz / OneAdapter

A Viewholderless Adapter for RecyclerView, who supports builtin diffing, states (paging, empty...), events (clicking, swiping...), and more.
MIT License
470 stars 45 forks source link

Selection without long click #12

Closed THEAccess closed 4 years ago

THEAccess commented 4 years ago

First of all thank you for this great library which makes working with RecyclerView much easier.

OneAdapter supports selection with a long click. Unfortunately i have not yet found a way to enable selection with just a normal (short) click. My first approach was to clone the project and implement it myself. Unfortunately the project is very complex and i couln't get it done.

Is there any way to enable/implement selection with short clicks? And is there a way to set a default selection?

Any help is appreciated.

idanatz commented 4 years ago

Hi, thanks for the kind words! I will dig into it and try to add an option for selection with a short click in a future version.

With a quick search, I found 2 posts with potential solutions, give them a try: https://stackoverflow.com/a/55154805/5516215 https://stackoverflow.com/a/55878940/5516215

meruiden commented 4 years ago

any updates on this

idanatz commented 4 years ago

will be added in v2.0.0 coming in the next few days 🥳

idanatz commented 4 years ago

v2.0.0 is out with this feature, pay attention to the breaking changes.