问题
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