public static class LinearLayoutInfo.ViewportFiller extends Object implements LayoutInfo.ViewportFiller
LayoutInfo.ViewportFiller which fills the viewport by laying
out items sequentially.| Constructor and Description |
|---|
ViewportFiller(int width,
int height,
int orientation) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(RenderInfo renderInfo,
int width,
int height)
This will be called to inform implementations that the next layout has been computed.
|
int |
getFill()
Return the fill along the main axis (i.e.
|
boolean |
wantsMore()
Implementations should return true if they need more views to be computed in order to fill
the screen.
|
public boolean wantsMore()
LayoutInfo.ViewportFillerwantsMore in interface LayoutInfo.ViewportFillerpublic void add(RenderInfo renderInfo, int width, int height)
LayoutInfo.ViewportFillerLayoutInfo.ViewportFiller.wantsMore()add in interface LayoutInfo.ViewportFillerpublic int getFill()
LayoutInfo.ViewportFillerLayoutInfo.ViewportFiller.add(RenderInfo, int, int) is called.getFill in interface LayoutInfo.ViewportFiller