nathanjosiah
8 years agoVisitor
Infinite scroll on RowList with only a few items
I am using a RowList in a centered, single row configuration carousel as was previously available by default:
And if I have plenty of items in the list, it displays fine and loops the content. However, with only a few items in it, the list isn't centered, nor doe it loop so its right aligned, fixed on the screen, and the reticle actually moves when selecting items. How can I keep the behavior consistent regardless of how many items are in it?
<RowList
id="CategoryRow"
itemComponentName="Item"
itemSize="[1920,250]"
rowHeights="[250]"
rowItemSize="[[444,250]]"
rowItemSpacing="[[50,20]]"
numRows="1"
rowLabelOffset="[[0,15]]"
rowLabelFont="font:LargeBoldSystemFont"
rowLabelColor="0x333333"
rowFocusAnimationStyle="fixedFocusWrap"
showRowLabel="[false]"
focusXOffset="[515]"
focusBitmapUri="pkg:/images/reticle1.png"
translation="[0,400]"/>
And if I have plenty of items in the list, it displays fine and loops the content. However, with only a few items in it, the list isn't centered, nor doe it loop so its right aligned, fixed on the screen, and the reticle actually moves when selecting items. How can I keep the behavior consistent regardless of how many items are in it?