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
setArrowOrientationRules(ArrowOrientationRules.ALIGN_ANCHOR) does not work on a custom layout. #397
Comments
Hey @MKadykov, could you share any screenshots or the layouts that should be shown with the balloon? I guess the size of your anchor view is already huge so the balloon keeps showing on the top side. And in most cases, if the layout is not dynamically changed, I would recommend you fix the position of the arrow. |
Thanks for the quick response! And this is what happens if the arrow is not fixed |
@MKadykov Thanks for sharing the details! I see this is kind of a bug, so let me fix the issue in the next release. Thank you! |
It was released in version 1.5.1. Thanks! |
Hello!
Many thanks for the quick bug fix!
If I may, I would like to give some suggestions about using a custom
layout. The first is when I set a custom layout
.setLayout(R.layout.balloon_view), then when requesting
balloon.getContentView() I expect to get exactly this layout. But I get a
parent layout that is not quite clear, similar to FrameLayout. I understand
that it can be useful in normal use, but then maybe add an additional
function that returns exactly the custom layout?
Secondly, is it possible to expand the description of using a custom layout
with additional examples? For example, what kind of layout do you recommend
as a root layout? I tried using ConstraintLayout, but got big problems with
balloon height. I am currently using LinearLayout, but it is having
problems when placing ImageView and VideoView. Perhaps you have tips and
examples for the correct application of a custom layout?
Thank you in advance!
Sincerely, Michael
пт, 6 янв. 2023 г. в 05:30, Jaewoong Eum ***@***.***>:
… Closed #397 <#397> as completed.
—
Reply to this email directly, view it on GitHub
<#397 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5B6JHDU2VCLVR5OV7GNBF3WQ57UNANCNFSM6AAAAAATP56RT4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sorry, but with the upgrade to 1.5.1, the problem has not disappeared. The arrow does not readjust to the anchor, but always at the bottom. |
Hi, I am facing the same issue. ALIGN_ANCHOR doesn't work with showAlignLeft() and showAlignRight(). My balloon is able to show in the correct side of the anchor but the arrow is always pointing to the bottom. |
Please complete the following information:
Describe the Bug:
Maybe I'm wrong, but I understand that when I set ArrowOrientationRules.ALIGN_ANCHOR, the arrow should automatically turn towards the "anchor", is that right? At the same time, setArrowOrientation should either be omitted or ignored. But, in this case, I always have an arrow at the bottom, although, the anchor object is located on the right.
The text was updated successfully, but these errors were encountered: