public static class ListScenario.Params extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
mMustFillScreen |
Constructor and Description |
---|
ListScenario.Params() |
Modifier and Type | Method and Description |
---|---|
ListScenario.Params |
includeHeaderAboveList(boolean includeHeader)
Include a header text view above the list.
|
ListScenario.Params |
setConnectAdapter(boolean connectAdapter)
Sets whether the
ListScenario will automatically set the
adapter on the list view. |
ListScenario.Params |
setFadingEdgeScreenSizeFactor(double fadingEdgeScreenSizeFactor)
Set the factor for the fading edge length.
|
ListScenario.Params |
setFooterViewCount(int footerViewCount)
Set the number of footer views to appear within the list
|
ListScenario.Params |
setHeaderFocusable(boolean headerFocusable)
Set whether the headers should be focusable.
|
ListScenario.Params |
setHeaderViewCount(int headerViewCount)
Set the number of header views to appear within the list
|
ListScenario.Params |
setItemScreenSizeFactor(double itemScreenSizeFactor)
Set the factor that determines how tall each item is in relation to the
screen height.
|
ListScenario.Params |
setItemsFocusable(boolean itemsFocusable)
Set whether the items are focusable.
|
ListScenario.Params |
setMustFillScreen(boolean fillScreen)
Sets whether the sum of the height of the list items must be at least the
height of the list view.
|
ListScenario.Params |
setNumItems(int numItems)
Set the number of items in the list.
|
ListScenario.Params |
setPositionScreenSizeFactorOverride(int position,
double itemScreenSizeFactor)
Override the item screen size factor for a particular item.
|
ListScenario.Params |
setPositionsUnselectable(int... positions)
Set positions as unselectable (a.k.a a separator)
|
ListScenario.Params |
setPositionUnselectable(int position)
Set a position as unselectable (a.k.a a separator)
|
ListScenario.Params |
setStackFromBottom(boolean stackFromBottom)
Sets the stacking direction
|
ListScenario.Params |
setStartingSelectionPosition(int startingSelectionPosition)
Set the position that starts selected.
|
public ListScenario.Params setNumItems(int numItems)
public ListScenario.Params setItemsFocusable(boolean itemsFocusable)
public ListScenario.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 ListScenario.Params setItemScreenSizeFactor(double itemScreenSizeFactor)
public ListScenario.Params setPositionScreenSizeFactorOverride(int position, double itemScreenSizeFactor)
position
- The position in the list.itemScreenSizeFactor
- The screen size factor to use for the height.public ListScenario.Params setPositionUnselectable(int position)
position
- public ListScenario.Params setPositionsUnselectable(int... positions)
public ListScenario.Params includeHeaderAboveList(boolean includeHeader)
includeHeader
- public ListScenario.Params setStackFromBottom(boolean stackFromBottom)
stackFromBottom
- public ListScenario.Params setMustFillScreen(boolean fillScreen)
public ListScenario.Params setFadingEdgeScreenSizeFactor(double fadingEdgeScreenSizeFactor)
public ListScenario.Params setHeaderViewCount(int headerViewCount)
public ListScenario.Params setHeaderFocusable(boolean headerFocusable)
headerFocusable
- Whether the headers should be focusable (i.e
created as edit texts rather than text views).public ListScenario.Params setFooterViewCount(int footerViewCount)
public ListScenario.Params setConnectAdapter(boolean connectAdapter)
ListScenario
will automatically set the
adapter on the list view. If this is false, the client MUST set it
manually (this is useful when adding headers to the list view, which
must be done before the adapter is set).