Balloon icon indicating copy to clipboard operation
Balloon copied to clipboard

Arrow is not showing

Open csbenz opened this issue 1 year ago • 8 comments
trafficstars

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

csbenz avatar Feb 15 '24 10:02 csbenz

Same issue with the default example form the readme

csbenz avatar Feb 15 '24 11:02 csbenz

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

csbenz avatar Feb 15 '24 11:02 csbenz

Isn't there a default arrow? Do I have to set it myself with "setArrowDrawable()"?

csbenz avatar Feb 26 '24 14:02 csbenz

@skydoves any idea?

csbenz avatar Feb 26 '24 14:02 csbenz

Is this lib still maintained? @skydoves

luciditydreamss avatar Mar 29 '24 06:03 luciditydreamss

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.

skydoves avatar May 06 '24 15:05 skydoves

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 avatar May 06 '24 15:05 csbenz

@csbenz This is weird. Does the default demo also doesn't show an arrow on your device?

skydoves avatar May 07 '24 00:05 skydoves

Hi @csbenz, I'll close this issue now. If you face any further problems, please re-open this issue freely.

skydoves avatar May 31 '24 03:05 skydoves