Lines Matching refs:gravity
232 int gravity = lp.gravity;
233 if (gravity == -1) {
234 gravity = DEFAULT_CHILD_GRAVITY;
238 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
239 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK;
240 final int horizontalGravity = gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
243 // If the child's width is match_parent then we can ignore gravity.
264 // If the child's height is match_parent then we can ignore gravity.
304 int gravity = childLayoutParams.gravity;
305 if (gravity == -1) {
306 gravity = DEFAULT_CHILD_GRAVITY;
308 final int verticalGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK;
309 final int horizontalGravity = gravity & Gravity.HORIZONTAL_GRAVITY_MASK;
388 * Per-child layout information for layouts that support margins, gravity and boxedEdges.
449 * and gravity.
455 * @param gravity the gravity
459 public LayoutParams(int width, int height, int gravity) {
460 super(width, height, gravity);
464 public LayoutParams(int width, int height, int gravity, @BoxedEdges int boxed) {
465 super(width, height, gravity);
489 * gravity of the source.
499 * gravity of the source.
506 this.gravity = source.gravity;