如何在通知栏上绘制?
我需要绘制一个在通知栏上绘制的矩形,但我无法让它工作。代码如下所示:
canvas.drawRect(0,0, 200, 200, mLoadPaint);
但是 0, 0
位于通知栏下方,而不是上方。如何在通知栏上绘制?
I need to draw a rectangle that is drawn over the notification bar, but I'm unable to get it to work. The code looks like this:
canvas.drawRect(0,0, 200, 200, mLoadPaint);
But 0, 0
is just bellow the notification bar, instead of over it. How can I draw over the notification bar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 Activity 的主题更改为如下主题: http:// developer.android.com/reference/android/R.style.html#Theme_Light_NoTitleBar_Fullscreen
Try changing the theme of your Activity to something like this one: http://developer.android.com/reference/android/R.style.html#Theme_Light_NoTitleBar_Fullscreen