I am using the TvLazyRow
composable from the jetpack compose for tv library and using PivotOffsets to position the focused item at a fixed position in the row.
When I scroll the row to the very end, the fixed position value is not respected and the focusable item goes to the very end.
How do keep the position fixed even when scrolling to the very end or beginning?
Observed behaviour:
Desired behaviour:
pivotOffsets
inTvLazyRow
orTvLazyColumn
is not respected for the items at the beginning or the end of the list. To get your desired behaviour, you can add a dummy non-focusable box at the beginning and end of the list so that it maintains your items at the desired pivots.