skydoves / Balloon

:balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android.
https://skydoves.github.io/libraries/balloon/html/balloon/com.skydoves.balloon/index.html
Apache License 2.0
3.75k stars 292 forks source link

Arrow not it the right place on Android 23 #45

Closed AndreyBulgakow closed 4 years ago

AndreyBulgakow commented 4 years ago

Bug:

With the following code the arrow is always miss-placed on the devices with smaller screen, API 23 (please see the screenshot attached). It does not happen for example on the emulator Pixel 3, API 29.

Here is the Kotlin dsl I use:

val balloon = createBalloon(requireContext()) {
            setArrowSize(10)
            setArrowOrientation(ArrowOrientation.TOP)
            setPaddingTop(16)
            setPaddingRight(21)
            setPaddingBottom(16)
            setPaddingLeft(21)
            setCornerRadius(4f)
            setAlpha(0.85f)
            setText("12")
            setTextColorResource(R.color.black)
            setBackgroundColorResource(R.color.white)
            setLifecycleOwner(lifecycleOwner)
        }

It would be really nice if someone could help me with this :(

Emulator, Nexus S, API 23: Bildschirmfoto 2020-05-07 um 22 22 25

Emulator Pixel 3a, API 29 Bildschirmfoto 2020-05-07 um 22 21 41

AndreyBulgakow commented 4 years ago

@skydoves do you have any idea what it could be? I stuck in the middle of the project and would really appreciate some help on this one.

skydoves commented 4 years ago

Hi, @AndreyBulgakow. The new version 1.1.6 is released and you can check it! Thank you for your issue :)