I
I
Ivan2015-09-27 19:27:35
Android
Ivan, 2015-09-27 19:27:35

How to fix interface overlap when opening Android 4.4 API 19 soft keyboard?

The crux of the issue is in the title.
Tried methods that do not help:

  • android:windowSoftInputMode="adjustPan|adjustResize|stateHidden"
  • Style is not Fullscreen, not because of this
  • android:fitsSystemWindows="true"

I'm really looking forward to help, I've been desperate for 1.5 hours to look for a solution to this problem.
Sample activation code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:fitsSystemWindows="true"
    android:layout_height="fill_parent">
    <include
        android:id="@+id/tool_bar"
        layout="@layout/tool_bar"
        />
    <ScrollView
        android:id="@+id/scrollview"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_below="@+id/tool_bar"
        android:layout_above="@+id/button">
        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent"
            android:orientation="vertical"
            android:layout_height="wrap_content">

            // Много разных вьюшек и едитвью

        </RelativeLayout>
    </ScrollView>

    <Button
        android:id="@+id/button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Перевести"
        android:layout_alignParentBottom="true">
    </Button>

</RelativeLayout>

UPD:
On API16, this solution works quite well.
Issues with API19

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2015-09-27
@LenLord

The only way I found for API19 is:
stackoverflow.com/a/30019136
Answer by Mike Penz
But it's not native, unfortunately

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question