Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the black bar appearing at the bottom?

I am new to Android Development. I want my app to support the screen size of my device i.e. 1080 x 2160 pixels. Currently there is a black bottom bar that is displayed in place of where the navigation buttons would have been.

enter image description here

Please note that I do not want Full Screen Mode. I have disabled the button navigation on my device. It is only for this app that that the bottom black rectangle is showing. I just want my app to support the gesture navigation system of my device instead of buttons.How do I make the bottom bar go away using Java (Android Studio) so that my app utilizes that space?

like image 417
Kewal Shah Avatar asked Sep 08 '25 09:09

Kewal Shah


1 Answers

question is old but I faced the same issue and didnot find the solution on SO.
this problem occurs for long screens

We recommend that you design your app to support aspect ratios of 2.1 or higher. For this, you would add the following to the "application" element in your Manifest file:

<meta-data android:name="android.max_aspect" android:value="2.1" />

from here

like image 122
Kirguduck Avatar answered Sep 10 '25 01:09

Kirguduck