New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setOnSpinnerOutsideTouchListener does not fire #11
Comments
@davischung |
it would be great if you fixed it |
If there is no more issue, the fixed version will be released today. Thank you :) |
@davischung @mariooooo |
@skydoves @mariooooo |
Hi ! |
@skydoves |
@mariooooo Add the below code to the MainActivity. spinnerView.spinnerOutsideTouchListener = object : OnSpinnerOutsideTouchListener {
override fun onSpinnerOutsideTouch(view: View, event: MotionEvent) {
Toast.makeText(baseContext, "touched outside", Toast.LENGTH_SHORT).show()
spinnerView.dismiss()
}
} |
@skydoves The intention to add a One quick fix on my side is to add some handling like below to override the
See if you could handle it within the library. Thanks. |
Facing the same issue as @davischung |
It is released on the new version |
Please complete the following information:
Describe the Bug:
Im using Kotlin with PowerSpinner, setting the onSpinnerOutsideTouchListener using
setOnSpinnerOutsideTouchListener { view, motionEvent -> }
does not get fired while touching outside spinner when the spinner is openExpected Behavior:
Expect to get event fired when touching outside spinner when the spinner is open, so that I could close the spinner. It would be good if the spinner could be closed when user click the physical back button.
The text was updated successfully, but these errors were encountered: