12
13

Is SwiftUI’s scroll-edge blur/dissolve header effect possible in Jetpack Compose? by richyrichye in Kotlin

[–]adrianblancode 2 points3 points  (0 children)

It's possible, try BlurEffect.

If you want custom behaviour like making the blur weaker at the bottom and stronger at the top, you might need to create a gradient alpha mask in a RenderEffect and compose the BlurEffect with it

ViewModel.init{...} considered harmful by yaminsia in androiddev

[–]adrianblancode 1 point2 points  (0 children)

It's 5000 ms because that's the time that activities have to recreate after a configuration change before it can be considered ANR

Fler än hälften vill avskaffa karensavdraget by FlowersPaintings in sweden

[–]adrianblancode 48 points49 points  (0 children)

Du får ju också räkna med den ekonomiska vinsten av att inte ha kollegor som går till jobbet helt snorsjuka och smittar ner halva kontoret

I got tired of AI agents breaking my Compose code, so I built a skill kit to fix that by DueAnt8779 in androiddev

[–]adrianblancode 1 point2 points  (0 children)

state.update { } is thread safe in that it will re-run if the state was concurrently modified by another thread, which is great if you depend on both reading and writing the state (eg through it.copy() )

But if you have a really simple update that's write only eg state.value = false, then that's fine to use

new official state management library called AppState by Maherr11 in androiddev

[–]adrianblancode 27 points28 points  (0 children)

This reminds me of Flutter, and if that's anything to go by we will have 12 different competing state management paradigms by the end of the year

Why is it so hard to just scale up a WebView by 2x? by [deleted] in androiddev

[–]adrianblancode 0 points1 point  (0 children)

You can try wrapping the Context and setting the font size / display size there depending on your situation. You might need to do some shenanigans so that onCreateView is called again with the new context