Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimezis authored Nov 18, 2017
1 parent 34d5b07 commit fdb87ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ It honors its position and size changes, including view animation and property a
```

```Java
final float radius = 20;
float radius = 20;

final View decorView = getWindow().getDecorView();
View decorView = getWindow().getDecorView();
//Activity's root View. Can also be root View of your layout (preferably)
final ViewGroup rootView = (ViewGroup) decorView.findViewById(android.R.id.content);
ViewGroup rootView = (ViewGroup) decorView.findViewById(android.R.id.content);
//set background, if your root layout doesn't have one
final Drawable windowBackground = decorView.getBackground();
Drawable windowBackground = decorView.getBackground();

blurView.setupWith(rootView)
.windowBackground(windowBackground)
Expand Down

0 comments on commit fdb87ef

Please sign in to comment.