Android:如何制作*真正*透明的活动SwipePad风格?
所以是的,我知道如何使我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,我正在寻找的东西不是一个透明的活动 - 它是一个系统覆盖层。更多信息请参见:创建系统覆盖窗口(始终打开)顶部)
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)
我想你可以看看
FrameLayout
或SurfaceView
。SurfaceView
很有可能就是答案。I think you can take a look at
FrameLayout
orSurfaceView
.There's a high chance
SurfaceView
is the answer.