1

When pulling down the notifications, the gesture navigation bar on the bottom slides down, some apps like the PlayStore handle this well, while my app (and others like WA) is resizing, what is this about? Do I have to recompile with newer AndroidX version or do something in the manifest?

Couldn't find anything on this

enter image description here

(Take a close look at the bottom here ⬆️

ueen
  • 692
  • 3
  • 9
  • 21
  • When you create an empty activity app from the Android studio templates, do you have the same? – Zain Oct 26 '21 at 21:57
  • Didn't test, this also occurs on apps like WA and others like Ultimate Guitar – ueen Oct 26 '21 at 21:58
  • Not sure what device or Android variant you're using, but the navigation bar doesn't disappear on the official Android 12 emulator image. Screenshot: https://imgur.com/a/2qa3UQU – ashu Oct 27 '21 at 08:45
  • Using Pixel 4a 5G with the stable channel - it is a bit buggy though, so maybe this will be fixed eventually, but not sure if this is a bug or a intended change of behavior, however, didn't find anything on this.... – ueen Oct 27 '21 at 11:54

1 Answers1

1

First of all, I could not reproduce the issue on the official Android 31 emulator image.

Secondly, it appears that the Google Play app layouts fit the system window and use translucent system bars. Since your app doesn't implement such behaviour, the app layout needs resizing when the navigation bar re-appears. On the other hand, the Play Store layouts don't need resizing because the navigation bar will overlay on top of it. You can implement a translucent navigation bar using the instructions provided in this answer.

ashu
  • 1,756
  • 4
  • 22
  • 41