SYSTEM_TYPE_ALERT 中的 ScrollView 模糊
我有一个 Android 应用程序,它显示来自服务的系统警报:
WindowManager.LayoutParams params = new WindowManager.LayoutParams(WindowManager.LayoutParams.FILL_PARENT, WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT, WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, PixelFormat.OPAQUE);
((WindowManager) getSystemService(WINDOW_SERVICE)).addView(view, params);
我已将视图设置为 GridView、可滚动 TextView 和 Gallery,如果我将图像/文本混合在一起滚动,则在所有这些视图上。一切都模糊在一起。就好像新的图像/文本被绘制在屏幕上,但旧的图像/文本没有被删除。知道如何解决这个问题吗?有谁有内容可滚动的 TYPE_SYSTEM_ALERT 示例吗?
I have an android app that displays an system alert from a service:
WindowManager.LayoutParams params = new WindowManager.LayoutParams(WindowManager.LayoutParams.FILL_PARENT, WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT, WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, PixelFormat.OPAQUE);
((WindowManager) getSystemService(WINDOW_SERVICE)).addView(view, params);
I have set view to a GridView, Scrollable TextView, and a Gallery and on all of them if I scroll the images/text blend together. Everything is blurred together. It is as if the new image/text is drawn on the screen but the old image/text is not removed. Any idea on how to fix this? Does anyone have an example of a TYPE_SYSTEM_ALERT where the content is scrollable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论