2

I have this layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">

    <ListView
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fastScrollEnabled="true"
            android:focusableInTouchMode="true"
            android:dividerHeight="1px"
            android:visibility="gone"/>

</LinearLayout>

In each row of the listview I have an EditText and when I click it, it is focused but immediatelly it loses the focus.

I have the property android:windowSoftInputMode="stateVisible" in the activity in AndroidManifest. I have tried to add adjustPan and the focus works properly but in that case, the keyboard overlaps the list and I don't want that.

How can I do?

Thanks.

Héctor
  • 24,444
  • 35
  • 132
  • 243

0 Answers0