Forum Discussion

newperceptions's avatar
newperceptions
Streaming Star
2 years ago

First Row of Videos Larger

Hello. I'm using Roku XML to configure my channel. For my GridScreen: RowList node, I would like to have the first row (whatever is active) show larger. I figured out how to do that for a specific row (ie: row 0) but it doesn't change as you scroll... row 0 is the only row that shows larger then. I want to see whatever row is selected larger. Is it possible to do this via RowList XML?

  • Would you need

     

    RowList

     

    https://developer.roku.com/en-gb/docs/references/scenegraph/list-and-grid-nodes/rowlist.md

     

    sets the itemFocused to have the index of the focused row

     

    ```

    itemFocusedinteger0READ_ONLYWhen a row gains the key focus, set to the index of the focused row.

    ```

     

    you can adjust rowHeights array

     

    ```

    rowHeightsarray of floats[ ]READ_WRITE

    Specifies the heights of each row of the list. This allows the height of each row of the list to vary from row to row. The values override the height specified in the y-dimension value of the itemSize field. If the array contains fewer elements than the number of rows in the data model, the y-dimension value of the itemSize field is used as the height of the extra rows.

    `

    ```

     

    or there is a built in component

     

    zoomrowlist

     

    https://developer.roku.com/en-gb/docs/references/scenegraph/list-and-grid-nodes/zoomrowlist.md

     

    which automatically can have the focused row of a different height

     

    I want to invite you to the Roku Developers Slack also ... to get timely answers and discuss quickly ... post inthe #general channel.

     

    Here is the invite link, thanks

     

    https://join.slack.com/t/rokudevelopers/shared_invite/zt-27308pu2t-KtlL3XBkazqyrmS0yUOoiw

     

     

     

    • newperceptions's avatar
      newperceptions
      Streaming Star

      Thanks philanderson777! This is what I was looking for. Now to get the settings properly so it looks good. Had some issues earlier on (edited this post) but got it working now! One remaining issue is that the Hero video doesn't show its thumbnail. The rest of the feed does, just not the focus row. Is that set differently?

      • newperceptions's avatar
        newperceptions
        Streaming Star

        Scratch that. I read that the Item Component Field, which is determining the Poster thumbnail for the ZoomRowList is supposed to interpolate the height and width (meaning I don't set one in the Component Field xml file?). I have set a rowItemHeight and rowZoomItemHeight as well as a rowItemAspectRatio. But the thumbnails are giant and not adhering to that. This whole thing is perplexing to me as I'm trying to follow the instructions laid out by the link you shared. It seems like it should be easy. Set a starting x,y point. Set a height for each row (the rowZoomItem and rowItem), width is interpolated via aspect ratio. Boom, should be done. SceneGraph doesn't respond always, and then have to reload the channel, so it's very challenging to play around with values to see what it looks like. Am I the only guy that is finding troubles like this?