we’re partially migrating our Views to Jetpack Com...
# compose
m
we’re partially migrating our Views to Jetpack Compose, when we’re configuring the onclick for button/text, we notice a lags 😞 any references or best practices to smooth the animation when clicking text/button?
most of our code was referenced from official jetpack compose samples
a
Probably due to this.
🙏 2
✍️ 1
7
✍🏼 1
m
How I can achieve this down to top screen
a
BottomSheet i guess
👍 2
1
m
Yes, (left image) we’re using BottomSheet with full screen style
I’m also curious about doing a lot of heavy work in the (left image) it’s indeed a lot of work, and we needs to optimized it. but it’s also happened for onBackPressed strangely (image on the right) 1. Screen 1 (show phone number), clicking the text 2. Go to Screen 2 (render a few text field using Jetpack Compose, and preparing spinner data) 3. Back pressed (lag) Any recommendation/references/samples for doing a lot of heavy work with ViewModel + Jetpack Compose + MVI?
reading the official docs:
1. recomposition
2. declarative paradigm
I still can’t get a better understanding with it 😞
a
Initializing a new screen is definitely heavy work. Going back to the previous screen is also initializing a new screen as the previous screen has been destroyed. You can’t actually do anything ATM but since the RippleDrawable migration has been merged it’ll likely be in the next beta release.
✍️ 1
🔝 1
🙏 1
m
awesome, i thought it’s already released on beta05 (but didn’t find any in the release note 😞), will have to wait for the next beta release as you said then 🎉