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.73k stars 291 forks source link

Shadow is displayed around Ballon Pop up #154

Closed chaitanya-vanapamala closed 3 years ago

chaitanya-vanapamala commented 3 years ago

Please complete the following information:

Describe the Bug:

The balloon is surrounded by a shadow, I have used the code which is shown in the readme. When I have tried sample app from the repo its working, But when I included the library in my application its showing with shadow.

Screenshot 2021-02-02 155520

Following the code :

val balloon = Balloon.Builder(mContext) .setText("You can edit your profile now!") .setArrowSize(10) .setWidthRatio(1.0f) .setHeight(BalloonSizeSpec.WRAP) .setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR) .setArrowPosition(0.5f) .setPadding(12) .setMarginRight(12) .setMarginLeft(12) .setTextSize(15f) .setCornerRadius(0f) .setIsVisibleArrow(false) .setOverlayPadding(0f) .setTextColorResource(R.color.white) .setIconDrawableResource(R.drawable.ic_edit) .setBackgroundColorResource(R.color.azure) .setBalloonAnimation(BalloonAnimation.ELASTIC) .build()

Expected Behavior:

The shadow should be removed only the balloon should be displayed

skydoves commented 3 years ago

Hi, @chaitanya-vanapamala Could you try to use 1.3.2-alpha01?

chaitanya-vanapamala commented 3 years ago

Hi, @skydoves , After updating to 1.3.2-alpha01, Balloon is not at displaying.

skydoves commented 3 years ago

Can I know your device information?

skydoves commented 3 years ago

I guess your style.xml influence that kind of result. Please copy and paste your project's style.xml file :)

rkrishnan2012 commented 3 years ago

Try setting .setArrowElevation(0). Also, see if it is reproducible with different values of .setArrowOrientation(arrowOrientation).