Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以显示在其他Activity上面吗? #1

Closed
ghost opened this issue May 6, 2019 · 1 comment
Closed

可以显示在其他Activity上面吗? #1

ghost opened this issue May 6, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented May 6, 2019

Activity A调用show,当前界面为Activity B,当前界面能否显示到

@o0o0oo00
Copy link
Owner

o0o0oo00 commented May 7, 2019

想要使得弹出的View不与Activity耦合,也就是系统级的弹窗,那么必然是需要申请系统权限的。
如果不申请权限,我们使用的WindowManger添加的view是属于Activity的层级的(层级 < 2000)。
就是每个Activity有他自己的PuddingView。
当Activity A调用show再启动了Activity B ,此时Activity A的Pudding 并没消失,而是被Activity B挡住了。当我们返回Activity A的时候Pudding依然在。
当我们finish() Activity A的时候,Pudding会随着 Activity一起销毁掉,也就不展示了。

@o0o0oo00 o0o0oo00 closed this as completed May 7, 2019
@o0o0oo00 o0o0oo00 added the question Further information is requested label Jul 1, 2019
@o0o0oo00 o0o0oo00 pinned this issue Jul 1, 2019
@o0o0oo00 o0o0oo00 removed the question Further information is requested label Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant