Dali
Dali copied to clipboard
Dali is an image blur library for Android. It contains several modules for static blurring, live blurring and animations.
There isn't a straightforward way to use this on Jetpack Compose yet. Could it be possible to provide a `Composable` component that can use the Dali library? Thank you!
~~Might be related to #14~~ Code ```Kotlin Dali.create(this).load(R.drawable.ic_launcher_background).blurRadius(10).into(imgBackground) ``` Stacktrace ``` 2019-07-26 16:55:46.462 31292-31292/com.marknjunge.blurryshadow E/BlurBuilder: Could not set into imageview at.favre.lib.dali.builder.exception.BlurWorkerException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/jakewharton/disklrucache/DiskLruCache; at at.favre.lib.dali.builder.blur.BlurWorker.process(BlurWorker.java:153) at at.favre.lib.dali.builder.blur.BlurWorker.call(BlurWorker.java:48)...
```kotlin class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) GlobalScope.launch(Dispatchers.IO) { val url = "https://upload.wikimedia.org/wikipedia/commons/a/ad/Gretag-Macbeth_ColorChecker.jpg" val stream = URL(url).openStream() val bitmap = BitmapFactory.decodeStream(stream) .copy(Bitmap.Config.HARDWARE, false) Dali.create(this@MainActivity)...
See: https://travis-ci.org/github/patrickfav/Dali/builds/698058500 ``` > Task :dali:bintrayUpload Task :dali:bintrayUpload in app Starting Caching disabled for task ':dali:bintrayUpload' because: Caching has not been enabled for the task Task ':dali:bintrayUpload' is not up-to-date...
Installation did not succeed. The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS Installation failed due to: 'null' how can i fix this ?
I need to copy to a new bitmap using ARGB_8888 config to get the correct image, otherwise the colors get really trippy
tried to create a new liveBlurWorker, but it crashes immediately with the stack trace below. I was attempting to use it in a recyclerView. I even tried delaying the creation...
``` at.favre.lib.dali.builder.exception.LiveBlurWorkerException: Error while updating the live blur at at.favre.lib.dali.builder.live.LiveBlurWorker.updateBlurView(LiveBlurWorker.java:68) at com.cosmunity.ui.view.behavior.RootBehavior.onNestedScroll(RootBehavior.java:81) at android.support.design.widget.CoordinatorLayout.onNestedScroll(CoordinatorLayout.java:1706) at android.support.v4.view.ViewParentCompatLollipop.onNestedScroll(ViewParentCompatLollipop.java:60) at android.support.v4.view.ViewParentCompat$ViewParentCompatLollipopImpl.onNestedScroll(ViewParentCompat.java:177) at android.support.v4.view.ViewParentCompat.onNestedScroll(ViewParentCompat.java:328) at android.support.v4.view.NestedScrollingChildHelper.dispatchNestedScroll(NestedScrollingChildHelper.java:163) at android.support.v4.widget.SwipeRefreshLayout.dispatchNestedScroll(SwipeRefreshLayout.java:875) at android.support.v4.widget.SwipeRefreshLayout.onNestedScroll(SwipeRefreshLayout.java:830) at android.support.v4.view.ViewParentCompatLollipop.onNestedScroll(ViewParentCompatLollipop.java:60) at android.support.v4.view.ViewParentCompat$ViewParentCompatLollipopImpl.onNestedScroll(ViewParentCompat.java:177)...