Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
opnchaudhary
Level 7

focus first row's first item in gridscreen flat-landscape

hello there,
I am developing a Roku Channel application and while using grid scren with a flat-landscape the focus item is always the center item. But I want the focus to be in the first row, first item is there any way I can achieve that. I have tried SetFocusedListItem() and SetListOffset() with various values but ended with no luck. Any insight on this would be very thankful. However I can get the focus to the first item if I use flat-portrait layout for grid screeen, but I really need to use flat-landscape.

Thanks in advance
Regards
Paras Nath Chaudhary

Blog: https://parasnath.com.np/blog/
0 Kudos
3 Replies
Highlighted
Roku Employee
Roku Employee

Re: focus first row's first item in gridscreen flat-landsca

flat-landscape is a center-focus style. You can't change that. You'd have to use four-column-flat-landscape or one of the other left-focus styles.

http://sdkdocs.roku.com/display/sdkdoc/ ... tringstyle
0 Kudos
Highlighted
Roku Employee
Roku Employee

Re: focus first row's first item in gridscreen flat-landsca

The mixed aspect ratio grid style might work for what you are doing.

- Joel
0 Kudos
Highlighted
opnchaudhary
Level 7

Re: focus first row's first item in gridscreen flat-landsca

Thanks mixed-aspect-ratio was the option to use.
Regards
Paras Nath Chaudhary

Blog: https://parasnath.com.np/blog/
0 Kudos