Dimezis / BlurView

Dynamic iOS-like blur of underlying Views for Android
Apache License 2.0
3.5k stars 333 forks source link

'RenderScriptBlur' is deprecated. Deprecated in Java #197

Closed Child0fTheSun closed 1 year ago

Child0fTheSun commented 1 year ago

RenderScript APIs are deprecated starting in Android 12. They will continue to function for a while, but device and component manufacturers have already stopped providing hardware acceleration support, and RenderScript support will be removed entirely in a future release.

Library version: 2.0.3 Detailed steps to reproduce the issue

My XML

<eightbitlab.com.blurview.BlurView
            android:id="@+id/blur"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:blurOverlayColor="@color/white_30">

            ...

</eightbitlab.com.blurview.BlurView>

In code

        val decorView: View = requireActivity().window.decorView
        val rootView = decorView.findViewById<View>(android.R.id.content) as ViewGroup

        binding.proposedCollections.blur.setupWith(
            rootView,
            RenderScriptBlur(requireContext())
        ).setBlurRadius(8f)
Dimezis commented 1 year ago

I'm aware of that.

That's why the RenderscriptBlur is also deprecated and there's a new RenderEffectBlur to be used on newer APIs.

Dimezis commented 1 year ago

Closing the issue, since there doesn't seem to be any action to take on this