Android App Gray Bars

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
aradgivon
Posts: 6
Joined: Wed Oct 14, 2020 5:05 pm

Android App Gray Bars

Post by aradgivon » Tue Nov 10, 2020 2:33 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8322
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Android App Gray Bars

Post by FourthWorld » Tue Nov 10, 2020 5:21 pm

What are the dimensions of the older and newer devices?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5792
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android App Gray Bars

Post by jacque » Tue Nov 10, 2020 6:33 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”