Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 889
android developer Avatar asked Dec 25 '12 11:12

android developer


People also ask

What are window level blurs?

The window blur feature works across windows, which means it also works when there's another app behind the window you're viewing. This isn't the same as a blur render effect, which blurs the content inside a window within the same app. Window blurs are useful for dialogs and bottom sheets, and other floating windows.

How do you blur a view on Android?

BlurView can be used as a regular FrameLayout. It blurs its underlying content and draws it as a background for its children. BlurView redraws its blurred content when changes in view hierarchy are detected (draw() called).


1 Answers

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

like image 142
Kishan B Manavadariya Avatar answered Oct 05 '22 01:10

Kishan B Manavadariya