I am trying to implement Translucent system bars and having some trouble with fitsSystemWindows
preventing elements in the view from redrawing after they become hidden by an element like the keyboard.
As an example I have a submit button at the bottom of a form, if I start filling in the form the keyboard pops up, I enter data and then dismiss the keyboard and poof the submit button has gone.
I don't get this problem if I remove the fitsSystemWindows
but then I have some major layout issues.
Here is the code:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="PonyTheme" parent="@style/_PonyTheme">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
//this is the only line that causes a problem
<item name="android:fitsSystemWindows">true</item>
</style>
</resources>