2

Below URL is loaded in webview and EditText feild is not gaining focus as a result keyboard is not displayed.

Loaded URL in WebView : https://docs.google.com/forms/d/e/1FAIpQLSeICt0NT0xWZZV1iwLEaaZnnw5n5-8iRGt6HGQHQ9QFq1xpyA/viewform?c=0&w=1

Tried Solutions : Why is Android WebView refusing user input?

Any help would be appreciable.

Community
  • 1
  • 1
Jeelan
  • 173
  • 1
  • 11

1 Answers1

2

Found the issue :

<WebView
            android:id="@+id/common_webview_id"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:focusableInTouchMode="true"></WebView>

The problem was "focusableInTouchMode" attribute value was set to
"false" i.e android:focusableInTouchMode="false" and it should be "true" edit text to gain focus.

Jeelan
  • 173
  • 1
  • 11