Lines Matching refs:gravity
262 if (Gravity.isVertical(lp.gravity)) {
264 } else if (Gravity.isHorizontal(lp.gravity)) {
367 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection());
388 final boolean isVertical = Gravity.isVertical(gravity);
389 final boolean isHorizontal = Gravity.isHorizontal(gravity);
397 switch (gravity & Gravity.VERTICAL_GRAVITY_MASK) {
422 switch (gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
486 public int gravity = Gravity.NO_GRAVITY;
505 gravity = a.getInt(R.styleable.MultiPaneChallengeLayout_Layout_layout_gravity,
512 // Default gravity settings based on type and parent orientation
513 if (gravity == Gravity.NO_GRAVITY) {
517 gravity = Gravity.LEFT | Gravity.CENTER_VERTICAL;
520 gravity = Gravity.RIGHT | Gravity.CENTER_VERTICAL;
523 gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
529 gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL;
532 gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
535 gravity = Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL;
561 gravity = source.gravity;