Roku Developer Program

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

RowList and Markup as children of a Layout group - Possible?

I've been trying to show a MarkupGrid node and a RowList node in a LayoutGroup, but only the first item listed in XML shows up.


<LayoutGroup
  id="mainContainer"
  layoutDirection = "vertical"
  horizAlignment = "left"
  vertAlignment = "top"
  itemSpacings = "[0,0]"
  translation="[0,78]"
>

  <MarkupGrid
    id="carousel"
    itemComponentName="UIFeaturedItem"
    itemSize="[1280,500]"
    numRows="1"
    rowHeights="[500]"
    horizFocusAnimationStyle="FixedFocusWrap"
    drawFocusFeedback ="false"
    itemSpacing="[0,0]"
    fixedLayout="false"
  />

  <RowList
    id="collections"
    itemComponentName="UIFeaturedItem"
    itemSize="[1280,300]"
    numRows="9"
    drawFocusFeedback ="true"
    rowFocusAnimationStyle="FixedFocusWrap"
    horizFocusAnimationStyle="fixedFocus"
    showRowLabel="[true]"
    showRowCounter="[false]"
  />
</LayoutGroup>


1.  Is it possible to do this?
0 Kudos
1 Reply
neoRiley
Level 7

Re: RowList and Markup as children of a Layout group - Possible?

Solved:

When I had initially setup the LayoutGroup, I'd set the layoutDirection value to "vertical", when it should be "vert", as per the docs.  The node I couldn't see, which was RowList, was way off screen horizontally next to the MarkupGrid since "horiz" is the default value for layoutDirection.
0 Kudos