What is this line in Android webview? -
i`m trying make app webview in android , ios. , have question, when clicked area in android webview, orange line appear in android. furthermore doesn't appear in ios use same webview , same contents. line? guess android webview's attributes, i'm not sure.
this screenshot when clicked area. little bit secure thing, please understand remove contents.
it`s source : 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" />
and webview setting
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"); }
solved.
add 1 line in css. working fine. thanks.
* { -webkit-tap-highlight-color: rgba(0,0,0, 0.0); outline: none; }
Comments
Post a Comment