Join Slack
Powered by
Does using ViewPager as an AndroidView in Compose ...
# compose
s
Shakil Karim
01/23/2021, 10:05 PM
Does using ViewPager as an AndroidView in Compose only app is a good approach for now? Or it can be easily done in Compose?
a
Adam Powell
01/23/2021, 10:08 PM
it can be done in compose without too much trouble. I think one of the official samples has one in a couple hundred lines of code
Adam Powell
01/23/2021, 10:08 PM
maybe more like 100-150, I forget
s
Shakil Karim
01/23/2021, 10:11 PM
Yup, I tried that, but I have to use it with a list backed by Paging, and also snaping animation is also quite different from ViewPager.
10
Views
Open in Slack
Previous
Next