Laodice Melliti
06/23/2021, 8:15 AMWalter Berggren
06/24/2021, 7:38 AMScrollState.animateScrollBy
as neededWalter Berggren
06/24/2021, 7:41 AMWalter Berggren
06/24/2021, 7:42 AMLaodice Melliti
06/24/2021, 7:43 AMWalter Berggren
06/24/2021, 7:43 AMAdrian Landborn
06/28/2021, 8:09 AMLaodice Melliti
06/28/2021, 8:12 AMWalter Berggren
06/28/2021, 8:16 AMAdrian Landborn
06/28/2021, 8:17 AMLaodice Melliti
06/28/2021, 8:18 AMWalter Berggren
06/28/2021, 8:18 AMWalter Berggren
06/28/2021, 8:19 AMMutableInteractionSource
in response to keyboard eventsWalter Berggren
06/28/2021, 8:22 AMWalter Berggren
07/12/2021, 1:06 PMLaodice Melliti
07/12/2021, 1:07 PMGagan Deep
09/16/2021, 9:07 AMGagan Deep
09/16/2021, 9:08 AMWalter Berggren
09/16/2021, 12:43 PMAdrian Landborn
09/16/2021, 12:47 PMGagan Deep
09/16/2021, 12:52 PMGagan Deep
09/16/2021, 12:52 PMWalter Berggren
09/16/2021, 1:07 PMWalter Berggren
09/16/2021, 1:08 PMGagan Deep
09/16/2021, 1:24 PMNathan Castlehow
07/08/2022, 1:50 AMWalter Berggren
07/08/2022, 7:26 AMNathan Castlehow
07/11/2022, 4:27 AMLazyColumn(state = lazyColumnListState) {
items(COLUMN_ITEM_COUNT) { columnIndex ->
Column(
modifier = Modifier
) {
Text(
"I am section $columnIndex"
)
LazyRow(horizontalArrangement = Arrangement.spacedBy(4.dp)) {
items(ROW_ITEM_COUNT) { rowIndex ->
FocusableItem()
..........................
If we rely on the bringinto view provided by the lazy list then when scrolling up only the row is brought into view (without the title) (video attached).
Example repo https://github.com/nathan-castlehow/Lazyscrollingissue
We then naturally end up trying to use animateScrollToItem which then runs into the issues of cancelled scrolls caused by bring into view (from the focusable / clickable modifier). This / workarounds are talked about here [https://issuetracker.google.com/issues/212982472](https://issuetracker.google.com/issues/212982472)
The workaround we use from the issue is to override the focusable modifier to no longer bring into view. It looks like we will have to do the same with clickable.
Have you had to do similar to better control the scrolling behaviour?
Below is a video of the actual app in release mode running on a Chromecast with Google TV (we have removed clickable and overriden focusable). We still end up with the scroll coming across a bit laggy. I'm going to keep working on the performance to make the lists lighter to render but I'm not sure how much wiggle room we have. Have you noticed any particular gotchas we lazy list + dpad?Nathan Castlehow
07/11/2022, 4:29 AMLaodice Melliti
08/01/2022, 11:56 AMMohamed Sadakathulla
08/01/2022, 12:03 PMWalter Berggren
08/23/2022, 12:55 PM.clickable()
out-of-the-box can be resolved in compose 1.2.0: https://github.com/thesauri/dpad-composeNaga
10/25/2022, 4:54 AMColton Idle
10/25/2022, 1:35 PM