"adjustResize" Android

I have an application that works in full screen using:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

Because of this, the layout android:windowSoftInputMode="adjustResize"does not work correctly, i.e. It does not resize.

Is there a way to overcome the problem?

+3
source share
2 answers

Instead android:windowSoftInputMode="adjustResize"you can tryandroid:windowSoftInputMode="adjustPan"

+3
source

FYI: this is an existing AOSP (Android Open Source Project) bug: http://code.google.com/p/android/issues/detail?id=5497

Ideally, this error will be fixed, but so far there are several considerations on how to get around it. Since I have no idea which application scenario this applies to, they may not be applicable.

  • , , adjustPan . , , - , .

  • FLAG_FULLSCREEN , . , . -, (, -), , .

  • , . , , , , , (: EditText), , , ( onKeyUp onTouchEvent). , - , , . , .

+4

All Articles