You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I wanted to use just the view created by the library, so tried to get it via getContentView() call. I then used simple addView() call to add the returned view to my FrameLayout. It worked, but there was no arrow ;)
In the code it seems like the getContentView() gives us the RadiusLayout itself, omitting the arrow. I then tried to return binding.balloonWrapper, that gave me the arrow, but it was invisible (this is what Layout Inspector saw). When I executed show() on the Balloon itself the arrow was present.
I then changed arrow's visibility in the xml layout, it appeared, but did not have any margins set - they all were 0, and the color was black too (should have been blue).
Thanks!
Expected Behavior:
Wanted to get easy access to the Balloon view itself.
The text was updated successfully, but these errors were encountered:
Hi, I think we can customize almost all attributes of the arrow using the given functions.
If we want to change the color of the arrow with the custom layout, we should use .setBackgroundColor.
And could you explain why we need to access the arrow directly?
Yes, the functions do everything I can dream of ;)
My case was to get the whole Balloon object (together with the arrow) as a View so that I will not need to implement a balloon-like layout myself.
To be specific, I am doing some sort of a tutorial feature, and I need to add captions for highlighted views. I decided to add the captions in code, so was searching for a library that provides balloons as Views.
Please complete the following information:
Describe the Bug:
Hi! I wanted to use just the view created by the library, so tried to get it via getContentView() call. I then used simple addView() call to add the returned view to my FrameLayout. It worked, but there was no arrow ;)
In the code it seems like the getContentView() gives us the RadiusLayout itself, omitting the arrow. I then tried to return binding.balloonWrapper, that gave me the arrow, but it was invisible (this is what Layout Inspector saw). When I executed show() on the Balloon itself the arrow was present.
I then changed arrow's visibility in the xml layout, it appeared, but did not have any margins set - they all were 0, and the color was black too (should have been blue).
Thanks!
Expected Behavior:
Wanted to get easy access to the Balloon view itself.
The text was updated successfully, but these errors were encountered: