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

If you’re talking about a roPosterScreen and the banner between the top and posters:

posterscreen.SetFocusedList(itemIndex)

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.

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.

poster.SetFocusToFilterBanner(True) might be what you’re looking for…

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 & B Video" description="All Your Favorite R & 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 & 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>

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?

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()

belltown, :grinning_face_with_smiling_eyes:

Thanks for the info. I will try it today.

Update: It worked and I am thankful.
DA