你如何使用Android API通过iPhone这样的2指手势放大和缩小地图?
我有一个listview充满了的习惯webview.我想使用捏缩放/缩小我的webview.但是当我捏住webview它时,我没有灵活地进行缩放放大/缩小,从而触发listview's向上和向下滚动.
如何同时处理listview和捏合滚动UP/DOWN事件webview.
这是我的 listview_layout.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
ListView
android:id="@+id/listReader"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/readerHeader"
android:divider="@android:color/background_dark"
android:dividerHeight="5dp" >
</ListView>
Run Code Online (Sandbox Code Playgroud)
这是我的 webview_layour.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<WebView
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:clickable="true"
android:focusable="false"
android:focusableInTouchMode="false"
android:scrollbars="none" />
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
这是我的 java file
public class WebViewBookReader extends Activity {
static final String URL = "http://www.XXXXXXXX.com/requesthandler.ashx";
static final String KEY_ITEM_LOGIN = "Result"; // parent node …Run Code Online (Sandbox Code Playgroud) android listview gesture-recognition android-webview pinchzoom