how to hide bottom black area when entering new activity from top of screen

408 Views Asked by At

I am entering a new activity from top to bottom, while keeping the old still. Everything works fine, except that there is a black area at the bottom of the new entering activity, which does not look very nice (see the picture). The theme I am using is "Theme.AppCompat.Light.NoActionBar"

enter image description here

I suppose it is the space assigned to cope with the bottom navigation bar. Is it possible to avoid this?

1

There are 1 best solutions below

2
Febi M Felix On

Set a translucent theme for your activity , android:theme="@android:style/Theme.Translucent" OR Add an exit animation too.