Home | History | Annotate | Download | only in widget

Lines Matching defs:GRAVITY

19 import static android.view.Gravity.AXIS_PULL_AFTER;
20 import static android.view.Gravity.AXIS_PULL_BEFORE;
21 import static android.view.Gravity.AXIS_SPECIFIED;
22 import static android.view.Gravity.AXIS_X_SHIFT;
23 import static android.view.Gravity.AXIS_Y_SHIFT;
24 import static android.view.Gravity.HORIZONTAL_GRAVITY_MASK;
25 import static android.view.Gravity.VERTICAL_GRAVITY_MASK;
41 import android.view.Gravity;
118 * {@link LayoutParams#setGravity(int) gravity} property of the child's layout parameters.
131 * weight or a gravity. To prevent a column from stretching, ensure that one of the components
132 * in the column does not define a weight or a gravity.
148 * no gravity was defined on the view. If gravity was defined, then the gone-marked
622 static Alignment getAlignment(int gravity, boolean horizontal) {
625 int flags = (gravity & mask) >> shift;
1012 This method is then left with the simpler task of applying margins, gravity
1061 // Gravity offsets: the location of the alignment group relative to its cell group.
1883 * @attr name android:gravity
1913 private static final int GRAVITY = R.styleable.GridLayout_Layout_layout_gravity;
2050 int gravity = a.getInt(GRAVITY, Gravity.NO_GRAVITY);
2055 this.columnSpec = spec(column, colSpan, getAlignment(gravity, true), colWeight);
2060 this.rowSpec = spec(row, rowSpan, getAlignment(gravity, false), rowWeight);
2068 * See {@link Gravity}.
2070 * @param gravity the new gravity value
2072 * @attr name android:gravity
2074 public void setGravity(int gravity) {
2075 rowSpec = rowSpec.copyWriteAlignment(getAlignment(gravity, false));
2076 columnSpec = columnSpec.copyWriteAlignment(getAlignment(gravity, true));
2844 return 0; // baseline gravity is top