Android keyboard not showing when clicking on webview login

I have a custom webview implemented in my android app. If I touch the input or text area inside this web view, a soft keyboard does not appear. I did not overdo it with any sensory performers in my web review, and I did not change anything in my manifest. Can someone help me understand why the keyboard is not displayed?

My layout code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <android.support.v4.widget.SwipeRefreshLayout android:id="@+id/swipeRefreshLayout" android:layout_width="match_parent" android:layout_height="match_parent"> <nl.AEGEE.enschede.android.AEGEEWebView android:id="@+id/webView" android:layout_width="match_parent" android:layout_height="match_parent" /> </android.support.v4.widget.SwipeRefreshLayout> <ProgressBar android:id="@+id/progressBar" style="?android:attr/progressBarStyleHorizontal" android:progressTint="@color/aegee_blue" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="-6dp" android:layout_alignParentTop="true" /> </RelativeLayout> 
+6
source share
1 answer

Try adding these lines to your webview in an XML file.

 android:focusable="true" android:focusableInTouchMode="true" 

Hope this helps.

+7
source

All Articles