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: 
bandal
Visitor

CategoryLeaf Focus Position

I have a videoplayer app that shows a Welcome Icon and when pressed it opens up to a few Category Leafs. I would like to know if there is a way to position my focus on the CategoryLeaf itself on for example the 4th Leaf.
Thanks,
DA
0 Kudos
8 REPLIES 8
MSGreg
Visitor

Re: CategoryLeaf Focus Position

If you're talking about a roPosterScreen and the banner between the top and posters:
posterscreen.SetFocusedList(itemIndex)
0 Kudos
bandal
Visitor

Re: CategoryLeaf Focus Position

No I need focus on the Description Text on the CategoryLeaf bar itself.

Like on the Leaf bar there is text that may say:

My Videos My Photos My Music

and below the text itself is the actual multible Icons I would click to play

I would like for example the Focus to rest on My Photos in the example text above or some index that equals 1 in this case. The text comes from the xml files from videoplayer and has the area to fill out for CategoryLeaf.

Hope this makes sense.
0 Kudos
MSGreg
Visitor

Re: CategoryLeaf Focus Position

It's not clear to me. Can you reference actual component names from the Developer's Guide?

I'm referring to the category titles listed for the roPosterScreen in the arced-landscape style, for example.

When you say "Category Leaf", that makes sense: the poster with text underneath. When you add "bar" to that, it doesn't make sense. What "bar"?

The only bar I am aware of has the list of categories, such as "My Photos", "My Videos" in place where "Categories[0]" and "Categories[1]" are in the links above. Those seem like category titles, not leaves.

Maybe someone with more experience can chime in here.
0 Kudos
TheEndless
Channel Surfer

Re: CategoryLeaf Focus Position

poster.SetFocusToFilterBanner(True) might be what you're looking for...
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bandal
Visitor

Re: CategoryLeaf Focus Position

Here is the area with <categoryLeaf title=" HHHHHH" I want to put a Focus on from the xml file. Don't know why the Bold or underline didn't work to show where for this example.

<category title="Hip Hop Videos" description="All your Favorite Hip Hop Videos" sd_img=
"http://www.xxxx.org/rokubrian/images/158hh1.jpg" hd_img="http://www.xxxxx.org/rokubrian/images/214hh1.jpg">
<categoryLeaf title="Hip Hop Videos" description="Watch all Episodes of Hip Hop Videos here!" feed="http://www.xxxxxx.org/rokubrian/xml/hiphopvideo.xml" />
</category>

<category title="R &amp; B Video" description="All Your Favorite R &amp; B Music" sd_img="http://www.xxxxx.org/roku/images/cult2_sd.jpg" hd_img="http://www.xxxxx.org/roku/images/cult2_hd.jpg">
<categoryLeaf title="HHHHHHHH" description="R &amp; B Video" feed="http://www.xxxx.org/rokubrian/xml/r+bvideo.xml" />
</category>

<category title="Dance Videos" description="All Your Favorite Dance Videos" sd_img="http://www.xxxxxx.org/rokubrian/images/158dance1.jpg" hd_img="http://www.xxxxxxx.org/rokubrian/images/214dance1.jpg">
<categoryLeaf title="Dance Music Videos" description="Watch Dance Music Videos" feed="http://www.xxxxx.org/rokubrian/xml/dancemusicvideo.xml" />
</category>
0 Kudos
bandal
Visitor

Re: CategoryLeaf Focus Position

I tried this with no luck on the Filter Bar focus in videoplayer and in videoScreen.brs and set this line: m.screen.SetFocusedList(1). I thought the filter bar focus would change to the second filter bar title. But no.

If i have 3 items on the Filter Bar the left most Filter Bar Title is highlighted or focused. What if I want the middle focused first?
0 Kudos
belltown
Roku Guru

Re: CategoryLeaf Focus Position

In appPosterScreen.brs, in showPosterScreen () change:


screen.SetContentList(getShowsForCategoryItem(category, m.curCategory))
screen.Show()


to:


screen.SetContentList(getShowsForCategoryItem(category, m.curCategory))
screen.SetFocusedList (1)
screen.Show()
0 Kudos
bandal
Visitor

Re: CategoryLeaf Focus Position

belltown, 😄

Thanks for the info. I will try it today.

Update: It worked and I am thankful.
DA
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.