I am using an ExpandableListView like shown in code below. It has EditText fields inside it so i have to use
android:windowSoftInputMode="adjustPan"
inside the the AndroidManifest.xml. If i don't use adjustPan then on keyboard popup list will render and cursor automatically jumps to the first input field. But problem with using adjustPan is that
When list has many entries and keyboard popup then some part of list will stay behind the keyboard even after scrolling. How can i fix that issue?
<?xml version="1.0" encoding="utf-8"?>
<layout 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">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<ExpandableListView
android:id="@+id/elvAddVariants"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/white"
android:groupIndicator="@null"
android:dividerHeight="@dimen/margin_medium_l"
android:childDivider="@android:color/transparent">
</ExpandableListView>
</FrameLayout>
</layout>
from Keyboard shows on top of ExpandableListView android
No comments:
Post a Comment