I'm trying to get swipe the Web Views like list view swipe.... from left to right. I've followed the way that showed here.
Also I've set the webviews
in the viewflipper
<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/flipper" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview1" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webview2" android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
but I think the onTouchEvent
of webView does not work here.
@Override
public boolean onTouchEvent(MotionEvent event) {
if (gestureDetector.onTouchEvent(event))
return true;
else
return false;
}