android-tutorial-bubbles
android-tutorial-bubbles copied to clipboard
Misalignment
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 :)
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.