I have DialogFragment and a WebView into it, that opens with Google Forms web page. But keyboard not showing when clicking on text input field. Any suggestions? Original Android 8.1 (Nexus 5x).
WebView webView = binding.webView;
webView.requestFocus(View.FOCUS_DOWN);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(google_form_url);
Layout:
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data />
<WebView
android:id="@+id/webView"
style="?android:attr/webViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true" />
</layout>
Manifest:
<activity
android:name="com.keeple.april.Activity2"
android:theme="@style/AppTheme"
android:screenOrientation="portrait"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize"/>