skydoves / Balloon

:balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android.

Home Page:https://skydoves.github.io/libraries/balloon/html/balloon/com.skydoves.balloon/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setArrowSize doesn't work as expected

UmairKhalid786 opened this issue · comments

Please complete the following information:

  • Library Version v1.5.2
  • Affected Devices (Android TV 1080p API 31, Pixel 3XL API 28)

Describe the Bug:

When you set the arrow size using the setArrowSize method and try to align the arrow with the anchor
setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR)

it doesn't align with the anchor

Expected Behavior:
The tooltip arrow should center align even when we try to set the arrow size

Hey @UmairKhalid786, could you expand on this? You titled setArrowSize doesn't work but the description says setArrowPositionRules` doesn't work as your expectation.

Let me explain how setArrowSize effects setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR)

When tooltip size is set, arrow alignment is disturbed

Code snippet

Generates

Screenshot_1674309271

Hey @UmairKhalid786, this issue has been fixed in the recent release, 1.6.4. Please update your library version, and please reopen this issue if you still face the same problem. Thank you for reporting this issue!