BoomMenu icon indicating copy to clipboard operation
BoomMenu copied to clipboard

Can it blur background like BlurLockView

Open leonard2014 opened this issue 8 years ago • 3 comments

Both BoomMenu and BlurLockView are awesome! Could you add one more option in BoomMenu to blur the background like BlurLock View? When there are too many buttons, it need to blur the background to stress the buttons. Thank you so much!

leonard2014 avatar Apr 15 '16 05:04 leonard2014

Good idea. I will add this as soon as possible. Thanks for enhancement.

Nightonke avatar Apr 15 '16 05:04 Nightonke

You can use this class here;

http://paste.ubuntu.com/25592717/

and SET on Click like that (i set blur effect on main LinearLayout)

private LinearLayout root_LL;
private SetBlurEffekt setBlurEffekt;
..............
.................
 root_LL = (LinearLayout) findViewById(R.id.root_bg);
 setBlurEffekt = new SetBlurEffekt(this);
...........

  mbm1.setOnBoomListener(new OnBoomListenerAdapter() {
            @Override
            public void onClicked(int index, BoomButton boomButton) {
                super.onClicked(index, boomButton);
                System.out.println("CLICKED " + boomButton.getTextView().getText());
            }

            @Override
            public void onBoomWillShow() {
                setBlurEffekt.blurView(root_LL);  // BLUR root_LL  onBoom
            }

            @Override
            public void onBoomWillHide() {
                setBlurEffekt.unblurView(root_LL);    // UNBLUR  root_LL  onClose/hide etc...
            }
        });
....
....

kaplanerkan avatar Sep 22 '17 14:09 kaplanerkan

In iOS version this is possible:

    bmb1.backgroundBlurred = true
    bmb1.blurEffect = UIBlurEffect.init(style: UIBlurEffect.Style.dark)

So please add this feature in Android, too ! Thanks for your good work!

YvesR avatar Dec 22 '18 18:12 YvesR