Hi there -
I’m looking at the markup grid documentation and can’t find any settings to disable the infinite looping. I want the user to be able to reach the end of my grid and not restart. Thoughts?
Thanks!
Hi there -
I’m looking at the markup grid documentation and can’t find any settings to disable the infinite looping. I want the user to be able to reach the end of my grid and not restart. Thoughts?
Thanks!
Update: Pixshatter got it!
You could extend it, add a keyhandler (onKeyEvent) that eats (return true) any presses that would take it beyond the boundary… Might need to add the onKeyEvent in a child component of the extended MarkupGrid so it gets the presses first. I think it’d be possible without going full custom component though, which is also an option if you’re feeling wicked ambitious.
you need to set the attribute vertFocusAnimationStyle = “fixedFocus” (this is inherited from ArrayGrid)
Check with this link https://sdkdocs.roku.com/display/sdkdoc/ArrayGrid
or
Try this
<MarkupGrid
id = "yourID"
translation = "[ 130, 160 ]"
numColumns = "2"
vertFocusAnimationStyle = "fixedFocus"
numRows = "5"
itemSize = "[ 532, 308 ]"
itemSpacing = "[ 20, 20 ]"
drawFocusFeedback = "false" />
( fixedfocus, fixedFocusWrap, floatingFocus) at vertFocusAnimationStyle