Skip to content

Misalignment #2

@JakubHolovsky

Description

@JakubHolovsky

Hello, I am trying to highlight a login button with your library, however the bubble appears on the button while highlighting the space below it :)

misalignment

This is my bubble layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
  <ImageView
    android:id="@+id/infoBubbleIcon"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>
  <TextView
    android:id="@+id/infoBubbleText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="Check out our new music recommendations here"/>
</LinearLayout>

and this is the tutorial initialization:

loginButton.Post(() =>
            {
                tutorialButton =
                    new TutorialScreen.TutorialBuilder((Java.Lang.Integer) Resource.Layout.InfoBubble, loginButton)
                        .SetParentLayout(Window.DecorView)
                        .SetDismissible(Java.Lang.Boolean.True)
                        .AddHighlightView(loginButton, false)
                        .SetOnTutorialLayoutInflatedListener(new TutorialInflatedListener())
                        .Build();

                tutorialButton.ShowTutorial();
            });

note that I am using Xamarin (created binding for you library) but I don't think it should have any effect on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions