Home | History | Annotate | Download | only in view

Lines Matching defs:Gravity

25 import static android.view.WindowLayoutParamsProto.GRAVITY;
426 * X position for this window. With the default gravity it is ignored.
427 * When using {@link Gravity#LEFT} or {@link Gravity#START} or {@link Gravity#RIGHT} or
428 * {@link Gravity#END} it provides an offset from the given edge.
434 * Y position for this window. With the default gravity it is ignored.
435 * When using {@link Gravity#TOP} or {@link Gravity#BOTTOM} it provides
1997 * Placement of window within the screen as per {@link Gravity}. Both
1998 * {@link Gravity#apply(int, int, int, android.graphics.Rect, int, int,
1999 * android.graphics.Rect) Gravity.apply} and
2000 * {@link Gravity#applyDisplay(int, android.graphics.Rect, android.graphics.Rect)
2001 * Gravity.applyDisplay} are used during window layout, with this value
2002 * given as the desired gravity. For example you can specify
2003 * {@link Gravity#DISPLAY_CLIP_HORIZONTAL Gravity.DISPLAY_CLIP_HORIZONTAL} and
2004 * {@link Gravity#DISPLAY_CLIP_VERTICAL Gravity.DISPLAY_CLIP_VERTICAL} here
2006 * {@link Gravity#applyDisplay(int, android.graphics.Rect, android.graphics.Rect)
2007 * Gravity.applyDisplay}.
2009 * @see Gravity
2011 public int gravity;
2016 * {@link Gravity#apply(int, int, int, android.graphics.Rect, int, int,
2017 * android.graphics.Rect) Gravity.apply} for how this is used. This
2025 * {@link Gravity#apply(int, int, int, android.graphics.Rect, int, int,
2026 * android.graphics.Rect) Gravity.apply} for how this is used. This
2588 out.writeInt(gravity);
2644 gravity = in.readInt();
2786 if (gravity != o.gravity) {
2787 gravity = o.gravity;
2962 if (gravity != 0) {
2964 sb.append(Gravity.toString(gravity));
3074 proto.write(GRAVITY, gravity);
3128 * Restore the layout params' coordinates, size and gravity