Reputation: 173
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.
Upvotes: 2
Views: 1048
Reputation: 173
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.
Upvotes: 2