Forum Discussion

elmik3's avatar
elmik3
Visitor
9 years ago

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

1 Reply

  • 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.