GestureTutorial
GestureTutorial copied to clipboard
Wrong position of gestures
xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/web_view"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
<Button
android:id="@+id/goLogin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/log_in"
android:visibility="gone" />
</RelativeLayout>
code:
tv = TutorialView.create(getActivity(), TutorialView.RightToLeft, TutorialView.CenterRight,
Rl.findViewById(R.id.web_view));
tv.show();
gesture always places in top left corner of the view.