pgreze / android-reactions

Facebook like reaction picker for Android
Apache License 2.0
158 stars 46 forks source link

Need to release hold to navigate through PopupWindow in RecyclerView #6

Closed Baaaaatz closed 4 years ago

Baaaaatz commented 4 years ago

Whenever PopupWindow shows, i need to release my hold so i can navigate trough na popupwindow. Is there a workaround for this? Thank you

pgreze commented 4 years ago

Could you provide some sample code? Also sample app is providing several ways to use the library, could you confirm your code is acting similarly than sample code?

Pro-55 commented 4 years ago

img_btn_reaction.setOnTouchListener(getReactionPopup(context).apply { reactionSelectedListener = { position -> isPopupShowing = false val reactionType = if (position > -1) position + 1 else position Log.d("TAG", "TestLog: rT:$reactionType") true } })

This is how i am using is in the recyclerview adapter. I am facing similar issue where pop up is not shown half of the time & if it is shown then i have to re-position my finger up to select a reaction