Android 版 Flex Air 中的透明背景?

发布于 2024-12-27 08:25:41 字数 234 浏览 4 评论 0原文

Flex Air Android 应用程序可以有透明背景吗,如 Android Theme.Transluscent?我尝试将:添加

    <systemChrome>none</systemChrome>
    <transparent>true</transparent>

到 -app 文件中,但这只会使背景变白。有什么建议吗?

Can a Flex Air Android app have transparent background, like the Android Theme.Transluscent? I've tried adding:

    <systemChrome>none</systemChrome>
    <transparent>true</transparent>

to the -app file but that just makes the background white. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

丑丑阿 2025-01-03 08:25:41

回答自己的问题:这是不可能的。透明主题必须在 Android 清单中主活动的主题标签中设置。但 Android 清单中的主题标签无法通过 Flex 移动 Android 清单覆盖。

Answering own question: It's not possible. The transparent theme has to be set in the main activity's theme tag in the android manifest. But the theme tag in the android manifest can not be overridden via the Flex mobile android manifest.

何其悲哀 2025-01-03 08:25:41

如果您可以使用 fill:

      <fill>  
           <SolidColor color="#000000" alpha="0"/>  
      </fill> 

不确定该代码位于哪个文件中。

此外,阅读以下内容可能会很有用:http://oreilly.com/flex/excerpts/flex-4-cookbook/graphics.html

If you can use fill:

      <fill>  
           <SolidColor color="#000000" alpha="0"/>  
      </fill> 

Not sure which file that code is in.

Also, this may be useful to read through: http://oreilly.com/flex/excerpts/flex-4-cookbook/graphics.html

逐鹿 2025-01-03 08:25:41

我尝试了@Gunnar的想法,通过使用apk-tools反编译apk,更改活动主题并重建它。不起作用。至少仅通过这样做。我会尝试其他组合,如果成功,我会在这里发布。

I tried @Gunnar idea, by decompiling the apk with apk-tools, changing the activity theme and rebuilding it. Doesn't work. At least by only doing this. I'll try other combinations of things and if I succeed, I'll post here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文