Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrow is not showing #594

Open
csbenz opened this issue Feb 15, 2024 · 8 comments
Open

Arrow is not showing #594

csbenz opened this issue Feb 15, 2024 · 8 comments

Comments

@csbenz
Copy link

csbenz commented Feb 15, 2024

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
Copy link
Author

csbenz commented Feb 15, 2024

Same issue with the default example form the readme

@csbenz
Copy link
Author

csbenz commented Feb 15, 2024

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
Copy link
Author

csbenz commented Feb 26, 2024

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

@csbenz
Copy link
Author

csbenz commented Feb 26, 2024

@skydoves any idea?

@luciditydreamss
Copy link

Is this lib still maintained? @skydoves

@skydoves
Copy link
Owner

skydoves commented May 6, 2024

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.

@csbenz
Copy link
Author

csbenz commented May 6, 2024

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>

@skydoves
Copy link
Owner

skydoves commented May 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants