π§ π«ππ¦ππ¦πππ« π―π¬ πΎπ«ππ¦ππ¦πππ«πππ―ππππ₯π - when to use which
β remember: survives recompositions only (lost on config change/process death)β¨β rememberSaveable: also survives config change and process death
#JetpackCompose#AndroidDev#Kotlin#ComposeTips
Compose vs XML: Migrating an Old Android Appπ»
Legacy XML layouts were full of boilerplate. So, I tried Compose on a small screen. 2-3 hours later, it felt like a superpowerπͺ
Just start small and evolve gradually. Youβll thank yourself laterπ
#Android#JetpackCompose#Kotlin
Single vs Multiple StateFlows in #JetpackCompose β which is better? π€
Using a single StateFlow with a UI state data class keeps UI consistent, avoids conflicts & is easier to test.
Read more here: https://t.co/yl3wj3k4Z8
#Android#AndroidDev#StateManagement#CleanCode