Android:如何制作*真正*透明的活动Swip​​ePad风格?

发布于 2024-12-08 22:46:41 字数 255 浏览 4 评论 0原文

所以是的,我知道如何使我的 Activity 看起来透明(http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android),但我希望用户能够与无论它们是什么屏幕(例如 YouTube),就像在 SwipePad 中所做的那样。现在我可以使其透明,但用户在退出我的活动之前无法执行任何操作。

我知道这是可能的,因为它已经在 SwipePad 中完成了,但是如何实现呢?

So yes, I know how to make my Activity look transparent (http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android), but I want the user being able to interact with what ever screen they are (for example YouTube), like done in SwipePad. Now I can make it transparent, but the user can't do anything before exiting my activity.

I know this is possible as it's already done in SwipePad, but how?

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

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

发布评论

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

评论(2

请帮我爱他 2024-12-15 22:46:41

嗯,我正在寻找的东西不是一个透明的活动 - 它是一个系统覆盖层。更多信息请参见:创建系统覆盖窗口(始终打开)顶部)

Well, the thing I was looking wasn't a transparent activity - it was a system overlay. More info here: Creating a system overlay window (always on top)

八巷 2024-12-15 22:46:41

我想你可以看看 FrameLayoutSurfaceView
SurfaceView 很有可能就是答案。

I think you can take a look at FrameLayout or SurfaceView.
There's a high chance SurfaceView is the answer.

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