Omg <@UBTGMFRCZ> :heart_eyes: <https://androiddev...
# compose-ui-showcase
z
j
@cb does this work on old Android APIs?
c
Depends what you mean by 'work'. It does something on all API levels, but the blurring effect is only available on API 31+. The FAQs should hopefully help here: https://chrisbanes.github.io/haze/faq/
j
Yeah, this part:
On older devices (API 30 and below), Haze uses a fallback translucent scrim, unlike blur which is a no-op.
Anyway good job 🙂 I Hope we can drop old APIs so blur style is used more and more on Android
c
API 31+ is roughly 38% of active devices according to Android Studio. Not perfect, still a sizeable number of users.
s
This is great news! I've been asked to introduce this glass effect into Ashampoo Photos for two years now, and finally, I may be able to deliver it. 🎉
a
YES THANK YOU!
Also waiting for Romain Guy to talk about perf on Android haha 🤣
l
Nice stuffCould you add an image of how the translucent scrim looks like? Also, what about the performance?
c
Could you add an image of how the translucent scrim looks like?
See below. I didn't put a lot of effort into this, so it just the
tint
color with the alpha boosted.
Also, what about the performance?
I haven't done any benchmarks, but I've seen no noticeable drop in scroll performance in Tivi. I haven't tried on older/low end devices though.
👍 2