Thread
#compose
    m

    Mjahangiry75

    1 year ago
    can we blur something in compose?, like a
    Box
    Filip Wiesner

    Filip Wiesner

    1 year ago
    Theoretically yes but only since Android 12 (which is in beta)
    m

    Mjahangiry75

    1 year ago
    too bad
    Filip Wiesner

    Filip Wiesner

    1 year ago
    You can blur images tho if that's your use case.
    m

    Mjahangiry75

    1 year ago
    using glide?
    Filip Wiesner

    Filip Wiesner

    1 year ago
    Yeah, that should work. (or different image loading lib)
    m

    Mjahangiry75

    1 year ago
    I'll try
    Filip Wiesner

    Filip Wiesner

    1 year ago
    Glide has
    BlurTransformation
    m

    Mjahangiry75

    1 year ago
    is it available in it's compose version?
    Filip Wiesner

    Filip Wiesner

    1 year ago
    It should be (it almost certainly is)
    Read the docs if you are not sure
    Walter Berggren

    Walter Berggren

    1 year ago
    Hoping for this too, please the issue 😃 https://issuetracker.google.com/issues/166927547
    Filip Wiesner

    Filip Wiesner

    1 year ago
    But I guess it will still be available only on Android 12+ because blur effect on render nodes is not supported on previous versions. Maybe it will be software-rendered on previous versions?
    gildor

    gildor

    1 year ago
    You can use any standard way for blurring bitmaps (there are many articles and SO answers kn the topic), Android 12 is required only if you want blur for dynamic content