Blurry icon indicating copy to clipboard operation
Blurry copied to clipboard

How to avoid blurring textviews over constraint layout?

Open munibrahman opened this issue 7 years ago • 1 comments

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));
        }
    });`

munibrahman avatar May 12 '17 19:05 munibrahman

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

abdurahmanadilovic avatar Jul 17 '18 14:07 abdurahmanadilovic