问题
I create an Android app with FireMonkey (10.2.2), but I don't understand why I have a top and right white border. I never added that to my app.
I started to create an example app, just a black form with a black TRectangle without sides.
I don't have to code anything, just design. When I compile for Windows, it's OK. I have this border only on Android.
I get this result:
You can download the example project here : Click Here to Download
回答1:
I was having the exact same problem when adding a TStyleBook
, but I found a workaround. The steps are the following:
- Click on the form (I've done it in the Master view, of course)
- Go to the Properties tab, then open
Fill
>Color
- Choose your desired color, you can copy it from the style you imported for the
TStyleBook
(In my case it was:#FF2B3840
from thebackgroundstyle
setting in the style) - Within
Fill
also change theKind
to the valueSolid
Basically, this workaround is about manually overriding the inherited style from TStyleBook
. I know this is not ideal because it's a hardcoded value you'll have to keep track of if you ever change styles at runtime in your app.
Source link #1: Click here. Source link #2: Click here. Source link #3: Click here.
来源:https://stackoverflow.com/questions/58640154/remove-android-app-border-with-firemonkey