2016-07-19 3 views
0

AndroidやIoSでwebviewでアプリを作ろうとしています。 質問があります。Android webviewでエリアをクリックすると、このオレンジ色の線はAndroidのみに表示されます。さらに、私は同じWebviewと同じ内容を使用してもIoSには現れません。この行は何ですか?私はそれがちょうどアンドロイドwebviewの属性だと思うが、私は確信していない。Android webviewでこの行とは何ですか?

これは、その領域をクリックしたときのスクリーンショットです。 少し安全な物ですので、内容を削除してください。 layout.xml

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:id="@+id/root" 
android:orientation="vertical" 
android:weightSum="10" 
style="@style/rootlinear" > 

<WebView 
    android:id="@+id/webView" 
    style="@drawable/border" 
    android:layout_width="match_parent" 
    android:layout_weight="9.5" 
    android:layout_height="0dp" /> 

とWebViewの解決

private void setWebviewInit(WebView webview) { 
    webview.setInitialScale(1); 
    webview.getSettings().setJavaScriptEnabled(true); 
    webview.getSettings().setUseWideViewPort(true); 
    webview.getSettings().setLoadWithOverviewMode(true); 

    webview.getSettings().setSupportZoom(true); 
    webview.getSettings().setBuiltInZoomControls(true); 
    webview.getSettings().setDisplayZoomControls(false); 

    webview.setWebViewClient(webviewclient); 
    webview.setWebChromeClient(new WebviewAlert()); 
    webview.setWebChromeClient(new ChromeClient(this)); 
    webview.addJavascriptInterface(new JIFace(), "ezandroid"); 
} 
+0

コードを表示しますか? –

+0

webviewはmatch_parentにありますか?また親ですか?パディングもマージンもない? –

+0

[こちら(お問い合わせください)](http://stackoverflow.com/help/how-to-ask)と [this(mcve)](http://stackoverflow.com/help/mcve)質問する前に、 として、コミュニティからのより良い回答を得るのに役立ちます。そのアクティビティを拡張するために使用するlayout.xmlファイルが少なくとも必要です。 – Bonatti

答えて

1

の設定:

enter image description here

は、私の元にそれ `s。

あなたのCSSにこの1行を追加してください。それは正常に動作しています。ありがとう。

* { -webkit-tap-highlight-color: rgba(0,0,0, 0.0); outline: none; } 
関連する問題