模糊库不会模糊按钮

时间:2017-09-21 14:33:53

标签: android blur graphic blurry

我使用模糊库模糊约束布局,只有按钮不模糊。任何解决方案?

enter image description here

@BindView(R.id.constraintLayout) ConstraintLayout constraintLayout;
@BindView(R.id.return_button) ImageButton returnButton;
@BindView(R.id.email) EditText email;
@BindView(R.id.password) EditText password;
@BindView(R.id.button_login) AppCompatButton buttonLogin;
@BindView(R.id.forgot_password_button) AppCompatButton forgotPasswordButton;


 Blurry.with(getApplicationContext())
            .radius(25)
            .async()
            .animate(500)
            .sampling(8)
            .onto(constraintLayout);

1 个答案:

答案 0 :(得分:0)

好的,我让它工作了。我只是将按钮移动到FrameLayout