windowSoftInputMode = „adjustResize” nie działa z przezroczystą akcją / navbar

Mam problemy z przezroczystym paskiem akcji / nawigatorem w nowym systemie Android KitKat (4.4) iwindowSoftInputMode="adjustResize".

Normalnie zmieniając InputMode na AdjustResize, aplikacja powinna zmienić rozmiar, gdy pojawi się klawiatura ... ale tutaj nie! Jeśli usuwam linie dla efektu przezroczystości, zmiana rozmiaru działa.

Więc jeśli klawiatura jest widoczna, mój ListView jest pod nią i nie mogę uzyskać dostępu do kilku ostatnich elementów. (Tylko przez ręczne ukrywanie klawiatury)

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="XYZ"
android:versionCode="23"
android:versionName="0.1" >

<uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="19" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Theme.XYZStyle" >
    <activity
        android:name="XYZ"
        android:label="@string/app_name"
        android:windowSoftInputMode="adjustResize" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>

values-v19 / styles.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Theme.XYZStyle" parent="@style/Theme.AppCompat.Light">
    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item>
</style>

</resources>

fragment.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ListView
    android:id="@+id/listView_contacts"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipToPadding="false"
    android:divider="@null"
    android:dividerHeight="0dp"
    android:drawSelectorOnTop="true"
    android:fastScrollAlwaysVisible="true"
    android:fastScrollEnabled="true"
    android:paddingBottom="@dimen/navigationbar__height" >
</ListView>

</RelativeLayout>

Masz jakieś pomysły na naprawienie tego?

questionAnswers(14)

yourAnswerToTheQuestion