To create tile view we have two options:
1. We can use TileGrid which needs tile constructor. Tile Grid internally extends TileLayout which is like actual tile implementation.
Tile Grid internally handles creation of tiles with the datasource passed to it.
2. We can use TileLayout like :
TileLayout tileLayout = new TileLayout();
tileLayout.setTilesPerLine(3);
tileLayout.setHeight(400);
tileLayout.setWidth(500);
tileLayout.setBorder("1px solid");
for(Record : DataSource){// iterator over records of datasource
//create Tile or canvas or any VLayout or any component
//add above component to tileLayout.
//for eg:
SectionStack ss = new SectionStack();
tileLayout.addChild(ss);
}
If I go with the 2nd approach how it will impact my application performance.
1. We can use TileGrid which needs tile constructor. Tile Grid internally extends TileLayout which is like actual tile implementation.
Tile Grid internally handles creation of tiles with the datasource passed to it.
2. We can use TileLayout like :
TileLayout tileLayout = new TileLayout();
tileLayout.setTilesPerLine(3);
tileLayout.setHeight(400);
tileLayout.setWidth(500);
tileLayout.setBorder("1px solid");
for(Record : DataSource){// iterator over records of datasource
//create Tile or canvas or any VLayout or any component
//add above component to tileLayout.
//for eg:
SectionStack ss = new SectionStack();
tileLayout.addChild(ss);
}
If I go with the 2nd approach how it will impact my application performance.
Comment