@Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ @Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ @Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ @Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ @Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ @Override public float getAlignment(int axis) { return view.getAlignment(axis); }
/** * Determines the desired alignment for this view along an axis. * * @param axis may be either X_AXIS or Y_AXIS * @return the desired alignment, where 0.0 indicates the origin * and 1.0 the full span away from the origin */ public float getAlignment(int axis) { if (view != null) { return view.getAlignment(axis); } return 0; }
/** * Determines the desired alignment for this view along an axis. This is implemented to give the alignment to the * bottom of the icon along the y axis, and the default along the x axis. * * @param axis * may be either X_AXIS or Y_AXIS * @return the desired alignment; this should be a value between 0.0 and 1.0 where 0 indicates alignment at the * origin and 1.0 indicates alignment to the full span away from the origin; an alignment of 0.5 would be * the center of the view */ @Override public float getAlignment(int axis) { switch (axis) { case View.Y_AXIS: return vAlign; default: return super.getAlignment(axis); } }
/** Determines the desired alignment for this view along an * axis. This is implemented to give the alignment to the * bottom of the icon along the y axis, and the default * along the x axis. * * @param axis may be either X_AXIS or Y_AXIS * @returns the desired alignment. This should be a value * between 0.0 and 1.0 where 0 indicates alignment at the * origin and 1.0 indicates alignment to the full span * away from the origin. An alignment of 0.5 would be the * center of the view. */ public float getAlignment(int axis) { switch(axis) { case View.Y_AXIS: return getVerticalAlignment(); default: return super.getAlignment(axis); } }
public float getAlignment(int axis) { lock(); try { if (view != null) { return view.getAlignment(axis); } return 0; } finally { unlock(); } }
protected boolean minorAxisUpdateLayout(int minorAxis) { boolean minorAxisPreferenceChanged = false; float val; val = view.getPreferredSpan(minorAxis); if (val != getLayoutMinorAxisPreferredSpan()) { setLayoutMinorAxisPreferredSpan(val); minorAxisPreferenceChanged = true; } val = view.getAlignment(getMinorAxis()); if (val != getLayoutMinorAxisAlignment()) { setLayoutMinorAxisAlignment(val); minorAxisPreferenceChanged = true; } return minorAxisPreferenceChanged; }