如何仅对部分屏幕进行调暗/模糊处理? [英] How to dim/blur only part of the screen?
问题描述
我知道我们可以使屏幕变暗/模糊,如此帖子.
I know we can dim/blur the screen, as shown on this post.
我应该怎么做才能使其中的一部分变暗/模糊,从而使单个(或多个)视图没有任何影响,从而使整个屏幕都具有突出显示的视图效果?
What should I do in order to dim/blur only a part of it, leaving a single (or multiple) view without any effect, so that the entire screen will have an effect of a highlighted view?
而且,即使我在当前屏幕上方创建对话框,它也将起作用,以便对话框和突出显示的视图保持不起作用吗?
Also, will it work even if I make a dialog on top of the current screen, so that the dialog and the highlighted view will remain without any effect?
推荐答案
我认为Showcase View可能对您有所帮助.
ShowcaseView库旨在通过独特且吸引人的叠加层向用户突出显示和展示应用的特定部分.该库非常适合指出用户,手势或晦涩但有用的项目的兴趣点.
I think Showcase View Might be helpful for you.
The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with a distinctive and attractive overlay. This library is great for pointing out points of interest for users, gestures, or obscure but useful items.
该库基于在Ice-Cream Sandwich和Jelly Bean上的启动器中找到的"Cling"视图,但已扩展为更易于使用.
The library is based on the "Cling" view found in the Launcher on Ice-Cream Sandwich and Jelly Bean, but extended to be easier to use.
这篇关于如何仅对部分屏幕进行调暗/模糊处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!