While the keyboard is open a white strip appears at the top of the screen, and it persists regardless of a keyboard state change.
If I a use adjustPan
then it works, however, I want to use adjustResize
only.
<activity
android:name=".MainActivity"
android:screenOrientation="portrait"
android:theme="@style/MyTheme"
android:windowSoftInputMode="adjustResize"/>
<style name="MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowDrawsSystemBarBackgrounds"
tools:targetApi="lollipop">false</item>
</style>
There's a technique called Immersive Full-Screen Mode available in KitKat. I think it is now a preferred way to implement a fullscreen Activity.
This is an example from the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With