Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
cesarcarlos
Binge Watcher

How to make poster grip stop when it reaches the top or bottom of the list?

I'm working on my first Roku app and I've managed to create a PosterGrid with data loaded from a JSON file. However I've noticed that once I read the end or the beginning of the list, it cycles back.

homescreen.xml

 

<children>
        <PosterGrid 
                id="topics"
                translation="[105,240]"
                basePosterSize="[310,186]"
                itemSpacing = "[40,30]"
                posterDisplayMode = "scaleToFill"
                numColumns = "5"
                numRows = "10"
            />
</children>

 

 

Is there a way to change this behavior? Id like to place a couple of buttons at the top of the screen so I need to be able to exit the list without it cycling back to the bottom.

0 Kudos
1 REPLY 1
Uguisu
Binge Watcher

Re: How to make poster grip stop when it reaches the top or bottom of the list?

Ok so since posterGrid is the child of ArrayGrid you can use horizFocusAnimationStyle and vertFocusAnimationStyle. In your case you would probably want vertFocuseAnimation to be either floatingFocus or fixedFocus
https://developer.roku.com/en-gb/docs/references/scenegraph/abstract-nodes/arraygrid.md 
hope this helps.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.