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: 
elmik3
Level 7

Space between items, VideoPlayer example

Hi, I downloaded this example channel https://github.com/rokudev/sample-chann ... hannel.zip, and I liked the design, my question is how I reduce the space that exists between the items as shown in the image, 



I think it may be in this part of the code but I'm not sure

  sub itemContentChanged()
        m.Poster.loadDisplayMode = "scaleToZoom"
        m.Label.text = m.top.itemcontent.Title
        m.SubLabel.text = m.top.itemcontent.shortdescriptionline2
        updateLayout()
        m.Poster.uri = m.top.itemContent.HDPOSTERURL
        m.Label.translation = [10, m.poster.height + 20]
        m.SubLabel.translation = [10, m.poster.height + 65]
      end sub


If someone wants to help me I would appreciate them, regards
0 Kudos
1 Reply
joetesta
Level 10

Re: Space between items, VideoPlayer example

Check rowItemSpacing in CategoryScreen.xml, the first value is the horizontal value, currently 100 in the github download.  Try decreasing it to 50 or whatever makes sense for you.
aspiring
0 Kudos