android - webview inputfield is getting hidden when softinput keyboard is on -
i searched online , tried,
android:windowsoftinputmode="adjustresize|statehidden"
android:windowsoftinputmode="adjustresize"
android:windowsoftinputmode="adjustpan"
and don't have full window theme, still softinput keyboard covers half of textfield.
here code,
content.xml
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingbottom="0dp" android:paddingleft="0dp" android:paddingright="0dp" android:paddingtop="0dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.quads.quanta.quanta" tools:showin="@layout/activity_quanta"> <webview android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/content_quanta_webview" android:windowsoftinputmode="adjustresize" /> </relativelayout>
manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.quads.quanta"> <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsrtl="true" android:theme="@style/apptheme"> <activity android:name=".quanta" android:label="@string/app_name" android:configchanges="orientation|screensize" android:windowsoftinputmode="adjustresize|statehidden" android:theme="@style/apptheme.noactionbar"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> <uses-permission android:name="android.permission.internet" /> </manifest>
Comments
Post a Comment