Public constructors

ItemAlignmentFacet.ItemAlignmentDef

Public methods

getItemAlignmentFocusViewId

Returns Id of which child view take focus for alignment. When not set, it will use
use same id of getItemAlignmentViewId()

Returns

int

getItemAlignmentOffset

public final int getItemAlignmentOffset ()

Returns number of pixels to the end of low edge. Supports right to left layout direction.
In left to right or vertical case, it's the offset added to left/top edge. In right to
left case, it's the offset subtracted from right edge.

getItemAlignmentViewId

public final int getItemAlignmentViewId ()

Returns Id of which child view to be aligned. View.NO_ID refers to root view and should
be only used in first one. Different view ids of #getAlignmentDefs() define multiple alignment steps within one itemView, e.g. there are
two child views R.id.child1 and R.id.child2. App may allocated two
ItemAlignmentFacet.ItemAlignmentDefs, one with view id R.id.child1, the other with view id
R.id.child2. Note this id may or may not be same as the child view that takes focus.

setItemAlignmentViewId

public final void setItemAlignmentViewId (int viewId)

Sets Id of which child view to be aligned. View.NO_ID refers to root view and should
be only used in first one. Different view ids of #getAlignmentDefs() define multiple alignment steps within one itemView, e.g. there are
two child views R.id.child1 and R.id.child2. App may allocated two
ItemAlignmentFacet.ItemAlignmentDefs, one with view id R.id.child1, the other with view id
R.id.child2. Note this id may or may not be same as the child view that takes focus.