相关疑难解决方法(0)

如何使用Android Map进行手势缩放(喜欢iphone)

你如何使用Android API通过iPhone这样的2指手势放大和缩小地图?

api android zoom map gesture

5
推荐指数
2
解决办法
5243
查看次数

列表视图中的webview:触摸事件冲突因此无法在android中捏缩放IN/OUT

我有一个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

5
推荐指数
1
解决办法
4484
查看次数