Balloon
Balloon copied to clipboard
Arrow is not showing
Please complete the following information:
- Library Version 1.6.4
- Affected Device(s) Motorola Moto g84, Nexus 5, all tested emulator devices
Describe the Bug:
The balloon is showing but not the arrow
val balloon = Balloon.Builder(requireContext())
.setWidth(BalloonSizeSpec.WRAP)
.setHeight(BalloonSizeSpec.WRAP)
.setMaxWidthRatio(0.7f)
.setLayout(R.layout.view_welcome_oneironaut)
.setArrowPositionRules(ArrowPositionRules.ALIGN_BALLOON)
.setArrowSize(10)
.setIsVisibleArrow(true)
.setArrowPosition(0.5f)
.setPadding(24)
.setCornerRadius(8f)
.setBalloonAnimation(BalloonAnimation.FADE)
.setLifecycleOwner(viewLifecycleOwner)
.build()
balloon.showAlignTop(emptyWelcomeMessageTitle)
Expected Behavior:
Show the arrow
Same issue with the default example form the readme
I tried changing the arrow color, setting an alpha to the Balloon to see if the arrow was behind the view, etc.
The arrow never shows
Isn't there a default arrow? Do I have to set it myself with "setArrowDrawable()"?
@skydoves any idea?
Is this lib still maintained? @skydoves
Hey @csbenz @luciditydreamss, sorry for the late response. Would you expand on this issue? Especially, I need more information about the view_welcome_oneironaut.xml file.
It's a simple LinearLayout containing 2 TextViews:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:background="@color/dark_blue">
<ch.b3nz.lucidity.ui.FontTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/welcome_message"
android:textColor="@color/secondary"
android:textSize="24sp"
app:font="@string/bold" />
<ch.b3nz.lucidity.ui.FontTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/welcome_message_subtitle"
android:textColor="@color/white"
android:textSize="@dimen/text_size_14px"
app:font="@string/regular" />
</LinearLayout>
@csbenz This is weird. Does the default demo also doesn't show an arrow on your device?
Hi @csbenz, I'll close this issue now. If you face any further problems, please re-open this issue freely.