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: 
newchannel
Roku Guru

Home Screen Category...choose which category shows first

How to determine which category will show first when entering the channel? As I add cateogories the one I want seen first is getting moved around. I'm using arced-landscape.

Thank you.
http://www.victoryNOWfilmsandtv.com
0 Kudos
6 REPLIES 6
destruk
Streaming Star

Re: Home Screen Category...choose which category shows first

Whichever category is listed first in your xml will be displayed first (by default).
0 Kudos
newchannel
Roku Guru

Re: Home Screen Category...choose which category shows first

What's happening for me is each category in the 4th spot is always the one that is in the center of the home screen after choosing the channel. I am trying to move some of the categories around and as I add new cateogories my main category gets pushed to the right.

Whatever is in slot 4 between the <category></category> is what shows on the screen in the middle. Is there a way to control this?
http://www.victoryNOWfilmsandtv.com
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Home Screen Category...choose which category shows first

On a roPosterScreen, you can set the focused filter bar item with SetFocusedList() and you can set the focused poster item with SetFocusedListItem()
0 Kudos
destruk
Streaming Star

Re: Home Screen Category...choose which category shows first

If you remove those commands, by default the first item in the list should be focused. If you are using a gridscreen, then it might be centering the item selection by itself, in which case you can set it in the script to focus the 1st item on the selected category.
0 Kudos
bandal
Visitor

Re: Home Screen Category...choose which category shows first

If using videoplayer look in appHomeScreen.brs for this line screen.SetFocusedListItem(4)

Then you can change which category number it will show first. 0 = Most left Category Icon. the 4 means 5 Categories from the left.

DA
0 Kudos
newchannel
Roku Guru

Re: Home Screen Category...choose which category shows first

I looked at the homescreen.brs earlier to find a number to control it but didn't see it. Now sure how I overlooked but I did. Just checked again and located it. Thanks a bunch!
http://www.victoryNOWfilmsandtv.com
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.