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

Misalignment #2

Open
JakubHolovsky opened this issue Jun 1, 2017 · 2 comments
Open

Misalignment #2

JakubHolovsky opened this issue Jun 1, 2017 · 2 comments

Comments

@JakubHolovsky
Copy link

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.

@JakubHolovsky
Copy link
Author

actually happens because of Window.DecorView, when i removed that it is working as expected. I wonder if this is expected behavior for Window.DecorView.

@AndroidGuyDD
Copy link
Collaborator

Can you use your rootView instead of decorView? I would then close this issue.

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

2 participants