How to dim/blur only part of the screen?

流过昼夜 提交于 2019-12-21 12:12:40

问题


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?


回答1:


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.

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.

LINK TO GitHub



来源:https://stackoverflow.com/questions/14030154/how-to-dim-blur-only-part-of-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!