public class DefaultViewLayoutState extends SimpleViewLayoutState
SimpleViewLayoutState
that thoroughly handles minimum and maximum spans.ViewLayoutState.Parent
LAST_USED_BIT
Constructor and Description |
---|
DefaultViewLayoutState(View v) |
Modifier and Type | Method and Description |
---|---|
float |
getLayoutMinorAxisMaximumSpan()
Get the maximum span of the view along minor axis.
|
float |
getLayoutMinorAxisMinimumSpan()
Get the minimum span of the view along minor axis.
|
protected boolean |
minorAxisUpdateLayout(int minorAxis) |
void |
setLayoutMinorAxisMaximumSpan(float layoutMinorAxisMaximumSpan) |
void |
setLayoutMinorAxisMinimumSpan(float layoutMinorAxisMinimumSpan) |
clearStatusBits, doUpdateLayout, getLayoutMajorAxisPreferredSpan, getLayoutMajorAxisPreferredSpanFloat, getLayoutMajorAxisRawOffset, getLayoutMinorAxisAlignment, getLayoutMinorAxisPreferredSpan, getLayoutStateParent, getMajorAxis, getMinorAxis, getStatusBits, getView, getViewRawIndex, isFlyweight, isLayoutValid, isStatusBitsNonZero, isXMajorAxis, markViewSizeInvalid, selectLayoutMajorAxis, setLayoutMajorAxisPreferredSpan, setLayoutMajorAxisRawOffset, setLayoutMinorAxisAlignment, setLayoutMinorAxisPreferredSpan, setStatusBits, setViewRawIndex, updateLayout, viewPreferenceChanged
public DefaultViewLayoutState(View v)
protected boolean minorAxisUpdateLayout(int minorAxis)
minorAxisUpdateLayout
in class SimpleViewLayoutState
public float getLayoutMinorAxisMaximumSpan()
ViewLayoutState
GapBoxView
implementations
do not use the maximum span of their children
the particular layout state may decide not to cache
the maximum span value and return preferred span instead
to save memory that would otherwise be used for caching variables.
If there is a dedicated variable for this value then
that variable gets updated by ViewLayoutState.updateLayout()
which usually happens once the view
has called View.preferenceChanged()
in the parent.
After the value gets updated the layout state must immediately call
Parent.minorAxisPreferenceChanged()
to notify the parent about the change of minor span.
getLayoutMinorAxisMaximumSpan
in interface ViewLayoutState
getLayoutMinorAxisMaximumSpan
in class SimpleViewLayoutState
public void setLayoutMinorAxisMaximumSpan(float layoutMinorAxisMaximumSpan)
public float getLayoutMinorAxisMinimumSpan()
ViewLayoutState
GapBoxView
implementations
do not use the minimum span of their children
so the particular layout state may decide not to cache
the minimum span value and return preferred span instead
to save memory that would otherwise be used for caching variables.
If there is a dedicated variable for this value then
that variable should be updated during ViewLayoutState.updateLayout()
which usually happens once the view
has called View.preferenceChanged()
in the parent.
After the value gets updated the layout state must immediately call
Parent.minorAxisPreferenceChanged()
to notify the parent about the change of minor span.
getLayoutMinorAxisMinimumSpan
in interface ViewLayoutState
getLayoutMinorAxisMinimumSpan
in class SimpleViewLayoutState
public void setLayoutMinorAxisMinimumSpan(float layoutMinorAxisMinimumSpan)