GestureTutorial icon indicating copy to clipboard operation
GestureTutorial copied to clipboard

Wrong position of gestures

Open beprogressive opened this issue 11 years ago • 0 comments

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.

beprogressive avatar Dec 21 '14 07:12 beprogressive