Closed pcharbonnier closed 4 years ago
@pcharbonnier
Hi, could you test again with using the .setBackgroundColorResource(R.color.colorPrimary)
?
hi @skydoves
val balloon = Balloon.Builder(activity!!)
.setLayout(R.layout.popup_qty)
.setArrowSize(15)
.setArrowOrientation(ArrowOrientation.TOP)
.setArrowPosition(0.5f)
.setCornerRadius(10f)
.setDismissWhenTouchOutside(true)
.setArrowVisible(true)
.setArrowDrawable(ContextCompat.getDrawable(activity!!, R.drawable.ic_arrow_gray))
.setBackgroundColorResource(R.color.colorPrimary) .setBalloonAnimation(BalloonAnimation.OVERSHOOT)
.setLifecycleOwner(activity)
.build()
I have test with .setBackgroundColorResource(R.color.colorPrimary)
Doesn't work Except that my arrow have now the same color of as colorPrimary
AAAh Maybe I missed something but
val balloon = Balloon.Builder(activity!!)
.setLayout(R.layout.popup_qty)
.setArrowOrientation(ArrowOrientation.TOP)
.setCornerRadius(4f)
.setDismissWhenTouchOutside(true)
.setAlpha(0.9f)
.isRtlSupport(isRtlLayout())
.setBackgroundColorResource(R.color.transparent)
.setArrowDrawable(ContextCompat.getDrawable(activity!!, R.drawable.ic_arrow_gray))
.setBalloonAnimation(BalloonAnimation.OVERSHOOT)
.setLifecycleOwner(activity)
.build()
now I have my arrow drawable.
I removed some line and it's working.
Maybe setArrowDrawable
where incompatible with some methods.
So, sorry, MY BAD, sorry for the issue that is not really an issue
Ah that's okay. I'm glad your problem is solved. Thank you :)
Please complete the following information:
Describe the Bug:
I'm trying to add my custom arrow to the balloon but it only show the default one. I tried with both methods
Expected Behavior:
Displaying my custom arrow