• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Android App cut off on top and bottom

Advocate ,
Feb 27, 2019 Feb 27, 2019

Copy link to clipboard

Copied

Hello,

a user sent us this screenshot, where the app is transparent on the header and footer area and the desktop is visible. Has anyone seen anything like this before and can explain what is happening? The device is a Samsung Galaxy S9. It is the first report of this kind for a fairly popular app, so it seems not to be a widespread issue and we can not reproduce it locally. The user claims they have reinstalled the app a couple of times to no extent.

Thanks in advance

BUG_rommé__2_.jpg

TOPICS
Development

Views

2.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Feb 27, 2019 Feb 27, 2019

That's strange, I've seen apps having black bars on the top and bottom for ultra-widescreen devices, I've never seen the home screen wallpaper peeking through.

Do you have android.max_aspect set in your application XML to handle screens larger than 16:9 ratio?

Votes

Translate

Translate
Engaged ,
Feb 27, 2019 Feb 27, 2019

Copy link to clipboard

Copied

That's strange, I've seen apps having black bars on the top and bottom for ultra-widescreen devices, I've never seen the home screen wallpaper peeking through.

Do you have android.max_aspect set in your application XML to handle screens larger than 16:9 ratio?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 28, 2019 Feb 28, 2019

Copy link to clipboard

Copied

Thanks, no we do not set android.max_aspect. I did a bit of research since it could look like our app is being letterboxed in this case (content is not cut off, the rendering area is just smaller than the display size). I found this part of the documentation:

Note: You do not need to set a maximum aspect ratio if an activity's android:resizeableActivity attribute is set to true. If your app targets API level 24 or higher, this attribute defaults to true. For more information, see Configuring your app for multi-window mode.

Since we use <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="27"/> I do not see how maximum aspect ratio would make a difference. However I calclulated the aspect ratio of the above screenshot and the whole display is about 2.05 while the rendered area is 1,775, which is roughly 16:9, so it might be related to the max aspect ratio after all. I will try and see if I can replicate the behavior on a Galaxy S8 in the simulator.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 05, 2019 Mar 05, 2019

Copy link to clipboard

Copied

LATEST

We can reproduce the black letterbox on Samsung Galaxy S8 and adding android.max_aspect to our application.xml does indeed fix the problem on our test device. I still do not know why the screenshot from the user shows desktop background instead of the letterbox but I will assume this is bug will be fixed by supporting the aspect ratio of the device:

<!-- this lets you support devices larger than 16:9 ratio -->

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines