Search code examples
androidfullscreenandroid-notification-bar

Hide notification bar without using fullscreen


Here is my problem: is it possible to hide the android notification bar without using the fullscreen flag? I need to adjustResize my app when the soft keyboard is shown, but fullscreen apps ignore the resizing (as far as i know).

Has anyone an idea on how to make my app look fullscreen without this flag?

Here is the problem with the fullscreen flag: it only tries to show everything important, but i need to resize my app:

enter image description here

enter image description here

and the xml:

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

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
    android:text="EditText1"/>

<EditText
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:text="EditText2" />

</RelativeLayout>

Summary: i expected to see both EditTexts after my app resized and the new dimensions are redrawn


Solution

  • This is a known and not fixed Android bug, try out the workaround here

    All credit to LEO