Window layout got broken with latest release 14.2:
Window layout got broken with latest release 14.2:
Following code doesn’t pan the screen anymore (when entering an edit text within a custom view on focus change), but did prior to the update:
GetActiveScreen().getContext().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
]]>
< ![CDATA[
I changed window flags in order to fix a bug with system bars.
Previously the flags were:
set: WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS
cleared: WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
Now they are:
set: WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
cleared: WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION
So maybe there is some conflict with SOFT_INPUT_ADJUST_PAN. You may try to set the above flags using the previously used values. It might be linked with FLAG_LAYOUT_NO_LIMITS.
]]>
< ![CDATA[
Thanks Pierre.
I tried clearing and adding the previous (old) flags like so:
getActiveScreen().getContext().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
getActiveScreen().getContext().getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
But that didn’t work either. The softkeyboard still shows, but the screen doesn’t pan to show the EditText.
]]>
< ![CDATA[
Try to clear FLAG_LAYOUT_NO_LIMITS too
]]>
< ![CDATA[
We have a winner.
That did the trick.
Many thanks again.
]]>