wasabeef / Blurry

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

AndoidX support? #95

Closed naveen-nuveda closed 4 years ago

naveen-nuveda commented 4 years ago

Will it supports AndroidX support?

I tried to add to my project, But ImageView itself not showing. I think this is not supported by AndroidX. because my project is in androidx support

naveen-nuveda commented 4 years ago

It won't work directly in the OnCreate method. Then I tried after applying delayed

Handler().postDelayed({
          Blurry.with(this)
                  .radius(15)
                  .sampling(1)
                  .color(Color.argb(70, 0, 255, 255))
                  .async()
                  .capture(findViewById(R.id.fullImage))
                  .into(findViewById(R.id.fullImage))
      }, 500)