Page 1 of 1

Android App Gray Bars

Posted: Tue Nov 10, 2020 2:33 pm
by aradgivon
Hello,
I just installed a LC app on an android device and noticed some thick gray bars around my app.
This is the first time I come across this problem on an android device. How do I remove these bars from my app, does it have anything to do with my app size?
Btw I have this command running to try to fix it but it doesn't work:

Code: Select all

on preOpenStack
  set the fullscreenmode of me to "exactFit"
end preOpenStack
Kind Regards,
Arad

Re: Android App Gray Bars

Posted: Tue Nov 10, 2020 5:21 pm
by FourthWorld
What are the dimensions of the older and newer devices?

Re: Android App Gray Bars

Posted: Tue Nov 10, 2020 6:33 pm
by jacque
How do I remove these bars from my app, does it have anything to do with my app size?
Yes, and every Android device will have the bars in different sizes depending on the screen size. The only time there will be no bars is if the screen exactly fits the stack size.

The bars are the empty space where the stack doesn't reach the edges. They are black by default but if you've set a background color then the bars will be that color. It sounds like your stack has a gray backcolor.

I usually set a stack's backgroundcolor to the same color as the stack, and use fullscreenmode "showAll". That makes the stack look like it just has wide margins on larger screens. If the stack uses landscape orientation, "noBorder" may work better.