Android keyboard not showing when clicking on input in webview -


i have custom webview implemented in android app. if touch input or text area inside webview soft keyboard doesn't show up. have not overriden touchlisteners in webview nor did change in manifest. can me figure out why keyboard doesn't show?

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> 

please try add these lines webview in xml file.

android:focusable="true" android:focusableintouchmode="true" 

hope helps.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -