public static class GridScenario.Params extends Object
Constructor and Description |
---|
GridScenario.Params() |
Modifier and Type | Method and Description |
---|---|
GridScenario.Params |
setColumnWidth(int requestedWidth)
Sets the individual width of each column.
|
GridScenario.Params |
setItemScreenSizeFactor(double itemScreenSizeFactor)
Set the factor that determines how tall each item is in relation to the
screen height.
|
GridScenario.Params |
setMustFillScreen(boolean fillScreen)
Sets whether the sum of the height of the grid items must be at least the
height of the grid view.
|
GridScenario.Params |
setNumColumns(int numColumns)
Sets the number of columns in the grid.
|
GridScenario.Params |
setNumItems(int numItems)
Set the number of items in the grid.
|
GridScenario.Params |
setPositionScreenSizeFactorOverride(int position,
double itemScreenSizeFactor)
Override the item screen size factor for a particular item.
|
GridScenario.Params |
setStackFromBottom(boolean stackFromBottom)
Sets the stacking direction
|
GridScenario.Params |
setStartingSelectionPosition(int startingSelectionPosition)
Set the position that starts selected.
|
GridScenario.Params |
setStretchMode(int stretchMode)
Sets the stretch mode.
|
GridScenario.Params |
setVerticalSpacing(int verticalSpacing)
Sets the spacing between rows in the grid
|
public GridScenario.Params setNumItems(int numItems)
public GridScenario.Params setStartingSelectionPosition(int startingSelectionPosition)
startingSelectionPosition
- The selected position within the adapter's data set.
Pass -1 if you do not want to force a selection.public GridScenario.Params setItemScreenSizeFactor(double itemScreenSizeFactor)
public GridScenario.Params setPositionScreenSizeFactorOverride(int position, double itemScreenSizeFactor)
position
- The position in the grid.itemScreenSizeFactor
- The screen size factor to use for the height.public GridScenario.Params setStackFromBottom(boolean stackFromBottom)
stackFromBottom
- public GridScenario.Params setMustFillScreen(boolean fillScreen)
public GridScenario.Params setColumnWidth(int requestedWidth)
requestedWidth
- the width in pixels of the columnpublic GridScenario.Params setNumColumns(int numColumns)
public GridScenario.Params setStretchMode(int stretchMode)
public GridScenario.Params setVerticalSpacing(int verticalSpacing)