Your Digital Media Has Never Looked So Good

 
flynt7111
Topic Author
Posts: 5
Joined: Fri Feb 16, 2018 5:27 pm

How to change the focused postion of MarkupList

Tue Feb 20, 2018 4:18 pm

Hi. In default setting, the MarkupList always focus on the top item in the list while the rest of the list item is rolling vertically.

Is the a way to set the focus position to the middle of the list instead? 
Example:
Init state:      A, B, [C], D, E
Press down: B, C, [D], E, A
Press down: C, D, [E], A, B 

I have tried with all MarkupList properties on sdkdocs but no luck.
 
taylorcw
Posts: 30
Joined: Mon Jan 18, 2016 7:41 pm

Re: How to change the focused postion of MarkupList

Tue Feb 20, 2018 10:42 pm

Hey,  you would use the jumpToItem.  ( https://sdkdocs.roku.com/display/sdkdoc/MarkupList )

m.markuplist = m.top.findNode("someField“)
m.markuplist.content = some content data
m.markuplist.jumpToItem = 2

Make sure the content data is given first. If you have to build the content list, use an observeField event, waiting for content. 
 
flynt7111
Topic Author
Posts: 5
Joined: Fri Feb 16, 2018 5:27 pm

Re: How to change the focused postion of MarkupList

Wed Feb 21, 2018 2:38 pm

Thanks @tarlorcw. But sorry, it's not the answer for my case though. If you use the jumpToItem, that item will jump to the top of the list and get focused.
What I expect is the focused item in the middle of the list instead on top. 

I managed to found a work around solution by modifying the itemData ContentNode though.
 
Veeta
Posts: 144
Joined: Tue Aug 12, 2014 4:44 am
Location: http://www.veeta.tv
Contact:

Re: How to change the focused postion of MarkupList

Thu Feb 22, 2018 6:21 am

See if 'focusRow' works for you.  It's documented in ArrayGrid which should be a basis for MarkupList.
 
norcaljohnny
Posts: 39
Joined: Thu Apr 13, 2017 11:00 pm

Re: How to change the focused postion of MarkupList

Thu Feb 22, 2018 10:48 pm

flynt7111 wrote:
Hi. In default setting, the MarkupList always focus on the top item in the list while the rest of the list item is rolling vertically.

Is the a way to set the focus position to the middle of the list instead? 
Example:
Init state:      A, B, [C], D, E
Press down: B, C, [D], E, A
Press down: C, D, [E], A, B 

I have tried with all MarkupList properties on sdkdocs but no luck.

Do you mean something like this where it stays in the middle at all times...
numColumns=5
numRows=3
focusRow=1 //focus columns and rows index starts at 0
focusColumn=2
vertFocusAnimtationStyle=fixedFocus

or where it floats up and down the center...
numColumns=5
numRows=3
focusColumn=2 //focus columns and rows index starts at 0
vertFocusAnimtationStyle=floatingFocus
 
flynt7111
Topic Author
Posts: 5
Joined: Fri Feb 16, 2018 5:27 pm

Re: How to change the focused postion of MarkupList

Tue Aug 07, 2018 3:19 pm

Thanks norcaljohnny.

Yeah, the first option is what I need. We need to add the "vertFocusAnimtationStyle=[font=-apple-system, Helvetica Neue, Helvetica, sans-serif]fixedFocus" to get this effect.[/font]

Who is online

Users browsing this forum: No registered users and 3 guests