Remove Android app border with FireMonkey

て烟熏妆下的殇ゞ 提交于 2021-02-11 06:22:57

问题


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:

  1. Click on the form (I've done it in the Master view, of course)
  2. Go to the Properties tab, then open Fill > Color
  3. Choose your desired color, you can copy it from the style you imported for the TStyleBook (In my case it was: #FF2B3840 from the backgroundstyle setting in the style)
  4. Within Fill also change the Kind to the value Solid

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!