public static class LinearLayoutInfo.ViewportFiller extends java.lang.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.ViewportFiller
wantsMore
in interface LayoutInfo.ViewportFiller
public void add(RenderInfo renderInfo, int width, int height)
LayoutInfo.ViewportFiller
LayoutInfo.ViewportFiller.wantsMore()
add
in interface LayoutInfo.ViewportFiller
public int getFill()
LayoutInfo.ViewportFiller
LayoutInfo.ViewportFiller.add(RenderInfo, int, int)
is called.getFill
in interface LayoutInfo.ViewportFiller