如何使应用程序与Android中已有透明背景的状态栏重叠
我现在正在通过一些框架文件自定义主题。问题是我把状态栏做成了透明背景。但状态栏和应用程序之间有一条明显的边线。我怎样才能将它们合并在一起?看起来应用程序与屏幕顶部对齐,但状态栏也存在。
提前致谢。
I'm now customizing theme through some framework files. The problem is that I've made the status bar with transparent background. But there's an obvious side line between status bar and the application. How can I merge them together? Looks like the application align to the top of the screen but the status bar also exist.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请在 StatusBarService.java 中找到
WindowManager.LayoutParams.TYPE_STATUS_BAR
并将其替换为WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY
。我想这就是你想要的。
Please find
WindowManager.LayoutParams.TYPE_STATUS_BAR
in StatusBarService.java and replace it withWindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY
.I think it is what you want.