Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So we start by defining the basic dimensions and configuration of our example PosterGrid node in the <children> element of postergridscene.xml:

 

Code Block
<children>
  <PosterGrid 
    id = "examplePosterGrid" 
    basePosterSize = "[ 512, 288 ]" 
    caption1NumLines = "1" 
    numColumns = "2" 
    numRows = "2" 
    itemSpacing = "[ 20, 20 ]" />
</children>

 


The basePosterSize field value should be set to the size of the graphic images in the grid. As with a Poster node, the actual downloaded image sizes may be different, and will be scaled to the size specified by the basePosterSize field value. Again, as with a Poster node, for the absolute best appearance of your graphic images in the grid, the downloaded image sizes should exactly match the basePosterSize field value.

...

http://www.sdktestinglab.com/Tutorial/content/rendergridps.xml

Note
Note how the content meta-data attributes for each PosterGrid node item are set according to the attribute descriptions listed in Content Meta-Data and PosterGrid:

 

Code Block
<Content >
  <item 
    hdgridposterurl = "http://www.sdktestinglab.com/Tutorial/images/rectanglepg.jpg" 
    shortdescriptionline1 = "Rectangle Node" 
    x = "0" y = "0" />
  ...
</Content>