我無法做到這一點,它不是焦點webview的輸入或textarea在webview輸入android的重點錯誤
我點擊上次輸入。
http://i.stack.imgur.com/MGG3L.png
它應該是相同的這個(Android的網絡瀏覽器)
http://i.stack.imgur.com/WFRta.png
我應該怎麼辦?
MainActivity.js;
webview = (WebView) findViewById(R.id.webView1);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("http://mutlugunluk.com");
webview.requestFocus(View.FOCUS_DOWN);
webview.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_UP:
if (!v.hasFocus()) {
v.requestFocus();
}
break;
}
return false;
}
});
activity_main
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
android:id="@+id/webView1"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
請問您能多解釋一下這個問題。 –
我編輯過。找新圖片 –
問題是什麼。到底你想要做什麼? –