Я пользуюсь https://github.com/wasabeef/Blurry библиотекой.Android Libs Blurry не работает
в Onclick
, следующий код работает.
private boolean blurred = false;
if (blurred) {
Blurry.delete((ViewGroup) findViewById(R.id.content));
} else {
long startMs = System.currentTimeMillis();
Blurry.with(MainActivity.this)
.radius(25)
.sampling(2)
.async()
.animate(500)
.onto((ViewGroup) findViewById(R.id.content));
}
blurred = !blurred;
Но когда я добавить следующий код в OnCreate
, он не работает.
Blurry.with(MainActivity.this)
.radius(25)
.sampling(2)
.async()
.animate(500)
.onto((ViewGroup) findViewById(R.id.content));
показать свою дату(), пожалуйста. Не работает означает «Сбой»? –
Мои OnCreate только: Blurry.with (MainActivity.this) .radius (25) .sampling (2) .async() .animate (500) .onto ((ViewGroup) findViewById (R.id. содержание)); –
На каком устройстве вы работаете? @ThangBA – toantran