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

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 1
neoRiley
Visitor

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