wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.57k stars 602 forks source link

How to avoid blurring textviews over constraint layout? #58

Open munibrahman opened 7 years ago

munibrahman commented 7 years ago

screen shot 2017-05-12 at 1 07 06 pm I am trying to blur a constraint layout, which has edit text fields and text views inside of it.

But when I blur the layout, it blurs over everything else.

I made my text fields in xml.

This is my code.

`rlSignUpLogin.post(new Runnable() {

        @Override
        public void run() {
            Blurry.with(sign_up.this)
                    .radius(25)
                    .sampling(2)
                    .animate(500)
                    .onto((ViewGroup) findViewById(R.id.cl_signup_login_box));
        }
    });`
abdurahmanadilovic commented 5 years ago

Of course it will blur everything, constrain layout has no nested layouts, so it will blur everything inside it. Simply move the background image into a separate view and apply blur to that view only