Colton Idle
10/01/2021, 7:43 PMList<@Composable () -> Unit>
is it possible to write an if/when statement on what to do if mylist[0]
is of type MySpecialButton
?Zach Klippenstein (he/him) [MOD]
10/01/2021, 7:45 PMColton Idle
10/01/2021, 7:53 PMOrhan Tozan
10/01/2021, 7:57 PMCasey Brooks
10/01/2021, 8:04 PMModifier.swipeable
might be the thing you need. Put the items in a horizontal row, and make it swipeable to "snap" to each item in the row. Or just a normal horizontally-scrolling row if you don't need the snapping behavior https://developer.android.com/jetpack/compose/gestures#swipingColton Idle
10/01/2021, 8:04 PMIan Lake
10/01/2021, 9:17 PMColton Idle
10/01/2021, 9:18 PMHachemi Hamadi
10/04/2021, 8:03 AM