axehit
03/25/2022, 11:04 AMperformScrollToIndex
method in compose ui test library provided for scrolling an item to a particular index, scroll that item index to the very top position.
This behaviour is different from the recyclerView.scrollToPosition
method we have currently in the old view system which scrolls the item just enough to make that item visible at the bottom.
Can someone tell me is there an API for tests in compose to have that similar behaviour of scrolling the item just enough to make it visible at the bottom instead of at the top?Stylianos Gakis
03/25/2022, 12:58 PMBringIntoViewRequester
is a name that feels like it would fit this use case. Try it out. https://developer.android.com/reference/kotlin/androidx/compose/foundation/relocation/BringIntoViewRequesteraxehit
03/25/2022, 7:28 PMStylianos Gakis
03/25/2022, 7:47 PMZach Klippenstein (he/him) [MOD]
03/26/2022, 8:52 PMaxehit
03/28/2022, 7:24 PM