-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
setOnBalloonOutsideTouchListener is not getting invoked when clicking outside the popup nor the setOnBalloonOverlayClickListener #701
Comments
Hi, would you add the code below on your builder? .setDismissWhenTouchOutside(false) |
It worked, Thanks but i also want that when i click on the anchor view along with passing the click to the anchor the balloon and overlay dismisses as well, can we achieve that as well? |
I don't get what issue you are describing. Do you mean you need to allow clicking the outside but if you click the anchor view, it should dismiss the balloon? Not sure if this works. .setDismissWhenTouchOutside(false)
.setFocusable(false) |
What i want is :- |
Case 1: You can just call the |
Btw, there's no way that you can pass a click event through the overlay to your anchor view. It's an entire window the will be displayed on your screen. |
So i need to set |
I am showing tool tip on a button with overlay in my project and its getting visible fine. Now i want when user clicks on button bounds the click should be passed to the button and its action should be performed. I tried using passClickToAnchor(true) but it didn't worked. Then tried setOnBalloonOutsideTouchListener and setOnBalloonOverlayClickListener but it also was not invoked when i clicked on the overlay or clicked anywhere outside the tooltip balloon. Am i missing something or is it a bug?
I expect that if i have set passClickToAnchor(true) while creating balloon using createBalloon{} kotlin dsl the click should be passed to the anchor if the click is in the bounds which is not happening currently.
Here's how i created it
`val textForm = TextForm.Builder(fragmentContext)
.setText(fragmentContext.resources.getString(R.string.click_to_view_directions))
.setTextColorResource(R.color.text_color_primary)
.setTextSize(14f)
.setTextTypeface(ResourcesCompat.getFont(fragmentContext, R.font.poppins_regular))
.setIncludeFontPadding(false)
.build()
The text was updated successfully, but these errors were encountered: