How disable softkeyboard in WebView

后端 未结 6 675
被撕碎了的回忆
被撕碎了的回忆 2020-12-06 12:26

I need disable open softkeyboard in my WebView and in all edittexts in WebView (I do not access to thay because its is in WebView).

I try use \'android:windowSoftInp

6条回答
  •  臣服心动
    2020-12-06 12:50

    None of this seemed to work Sunil's answer didn't work when i put it in the layout. It led me to look at all the webview settings so i did this in the webview settings and it worked. No keyboard poping up.

    webview = (WebView) findViewById(R.id.webview);
    webview.setFocusableInTouchMode(false);
    webview.setFocusable(false);
    webview.loadUrl("file:///android_asset/index.html");
    

提交回复
热议问题