HomeSort by relevance Sort by last modified time
    Searched refs:Gravity (Results 1 - 25 of 592) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/transition/src/android/transition/cts/
SlideBadEdgeTest.java 20 import android.view.Gravity;
29 { Gravity.AXIS_CLIP, "AXIS_CLIP" },
30 { Gravity.AXIS_PULL_AFTER, "AXIS_PULL_AFTER" },
31 { Gravity.AXIS_PULL_BEFORE, "AXIS_PULL_BEFORE" },
32 { Gravity.AXIS_SPECIFIED, "AXIS_SPECIFIED" },
33 { Gravity.AXIS_Y_SHIFT, "AXIS_Y_SHIFT" },
34 { Gravity.AXIS_X_SHIFT, "AXIS_X_SHIFT" },
35 { Gravity.CENTER, "CENTER" },
36 { Gravity.CLIP_VERTICAL, "CLIP_VERTICAL" },
37 { Gravity.CLIP_HORIZONTAL, "CLIP_HORIZONTAL" }
    [all...]
SlideEdgeTest.java 24 import android.view.Gravity;
35 { Gravity.START, "START" },
36 { Gravity.END, "END" },
37 { Gravity.LEFT, "LEFT" },
38 { Gravity.TOP, "TOP" },
39 { Gravity.RIGHT, "RIGHT" },
40 { Gravity.BOTTOM, "BOTTOM" },
111 case Gravity.LEFT:
112 case Gravity.START:
117 case Gravity.RIGHT
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
GravityTest.java 24 import android.view.Gravity;
27 * Test {@link Gravity}.
41 new Gravity();
44 private void applyGravity(int gravity, int w, int h, Rect container, Rect outRect, boolean bRtl) {
46 Gravity.apply(gravity, w, h, mInRect, mOutRect, layoutDirection);
51 Gravity.apply(Gravity.TOP, 2, 3, mInRect, mOutRect);
56 Gravity.apply(Gravity.TOP, 2, 3, mInRect, 5, 5, mOutRect)
    [all...]
  /frameworks/support/compat/tests/java/android/support/v4/view/
GravityCompatTest.java 24 import android.view.Gravity;
37 assertEquals("Start constants", Gravity.START, GravityCompat.START);
38 assertEquals("End constants", Gravity.END, GravityCompat.END);
44 GravityCompat.getAbsoluteGravity(Gravity.LEFT, ViewCompat.LAYOUT_DIRECTION_LTR),
45 Gravity.LEFT);
47 GravityCompat.getAbsoluteGravity(Gravity.RIGHT, ViewCompat.LAYOUT_DIRECTION_LTR),
48 Gravity.RIGHT);
50 GravityCompat.getAbsoluteGravity(Gravity.LEFT, ViewCompat.LAYOUT_DIRECTION_RTL),
51 Gravity.LEFT);
53 GravityCompat.getAbsoluteGravity(Gravity.RIGHT, ViewCompat.LAYOUT_DIRECTION_RTL)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/ui/
TopRightWeightedLayout.java 22 import android.view.Gravity;
91 * Swap gravity:
101 // gravity swap
104 int gravity = layoutParams.gravity; local
107 if ((gravity & Gravity.LEFT) != 0) { // if gravity left is set . . .
108 gravity &= ~Gravity.LEFT; // unset lef
    [all...]
  /frameworks/support/compat/jellybean-mr1/android/support/v4/view/
GravityCompatJellybeanMr1.java 21 import android.view.Gravity;
25 public static int getAbsoluteGravity(int gravity, int layoutDirection) {
26 return Gravity.getAbsoluteGravity(gravity, layoutDirection);
29 public static void apply(int gravity, int w, int h, Rect container, Rect outRect,
31 Gravity.apply(gravity, w, h, container, outRect, layoutDirection);
34 public static void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj,
36 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect, layoutDirection)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/widget/
CircleView.java 27 import android.view.Gravity;
95 mGravity = a.getInt(R.styleable.CircleView_android_gravity, Gravity.NO_GRAVITY);
109 if (mGravity != Gravity.NO_GRAVITY) {
118 if (mGravity != Gravity.NO_GRAVITY) {
138 * @return the current {@link Gravity} used to align/size the circle
146 * {@link Gravity#NO_GRAVITY}.
149 * {@link #setRadius(float)} will automatically clear any conflicting gravity bits.
151 * @param gravity the {@link Gravity} flags to use
155 public CircleView setGravity(int gravity) {
    [all...]
  /frameworks/support/v17/preference-leanback/api21/android/support/v17/preference/
LeanbackPreferenceFragmentTransitionHelperApi21.java 22 import android.view.Gravity;
30 final Transition transitionStartEdge = new FadeAndShortSlide(Gravity.START);
31 final Transition transitionEndEdge = new FadeAndShortSlide(Gravity.END);
  /frameworks/base/core/java/android/transition/
SidePropagation.java 20 import android.view.Gravity;
36 private int mSide = Gravity.BOTTOM;
43 * farther from the edge. The default is {@link Gravity#BOTTOM}.
46 * {@link Gravity#LEFT}, {@link Gravity#TOP}, {@link Gravity#RIGHT},
47 * {@link Gravity#BOTTOM}, {@link Gravity#START}, or {@link Gravity#END}.
124 if (mSide == Gravity.START)
    [all...]
Slide.java 24 import android.view.Gravity;
49 private @GravityFlag int mSlideEdge = Gravity.BOTTOM;
54 @IntDef({Gravity.LEFT, Gravity.TOP, Gravity.RIGHT, Gravity.BOTTOM, Gravity.START, Gravity.END})
139 * Constructor using the default {@link Gravity#BOTTOM}
143 setSlideEdge(Gravity.BOTTOM)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListBottomGravityMany.java 19 import android.view.Gravity;
24 * Basic bottom gravity scenario, nothing fancy. There are
ListBottomGravity.java 19 import android.view.Gravity;
24 * Basic bottom gravity scenario, nothing fancy. Items do not
ListTopGravity.java 19 import android.view.Gravity;
24 * Basic top gravity scenario, nothing fancy. Items do not
  /frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
LayoutInsetsTest.java 7 import android.view.Gravity;
17 static int[] GRAVITIES = {Gravity.LEFT, Gravity.LEFT, Gravity.CENTER_HORIZONTAL, Gravity.RIGHT, Gravity.RIGHT};
AbstractLayoutTest.java 27 import static android.view.Gravity.BOTTOM;
28 import static android.view.Gravity.CENTER;
29 import static android.view.Gravity.FILL;
30 import static android.view.Gravity.LEFT;
31 import static android.view.Gravity.NO_GRAVITY;
32 import static android.view.Gravity.RIGHT;
33 import static android.view.Gravity.TOP;
  /frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
ListOfTouchablesTest.java 22 import android.view.Gravity;
63 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT,
80 Gravity.TOP | Gravity.LEFT, mListView.getTop());
  /frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
LeanbackTransitionHelperKitKat.java 18 import android.view.Gravity;
27 slide.setSlideEdge(Gravity.TOP);
36 slide.setSlideEdge(Gravity.TOP);
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
NinePatchesActivity.java 21 import android.view.Gravity;
34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
SimplePathsActivity.java 21 import android.view.Gravity;
33 layout.addView(text, new FrameLayout.LayoutParams(600, 350, Gravity.CENTER));
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DrawerLayoutUtil.java 26 import static android.view.Gravity.END;
27 import static android.view.Gravity.LEFT;
28 import static android.view.Gravity.RIGHT;
29 import static android.view.Gravity.START;
39 int gravity = -1; local
41 gravity = LEFT;
43 gravity = RIGHT;
45 gravity = START;
47 gravity = END;
49 if (gravity > 0)
57 gravity); local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/
ListEmptyView.java 20 import android.view.Gravity;
64 int gravity = local
65 isVerticallyCentered ? Gravity.CENTER : Gravity.TOP | Gravity.CENTER_HORIZONTAL;
66 ((LinearLayout.LayoutParams) mEmptyImageHint.getLayoutParams()).gravity = gravity;
67 ((LinearLayout.LayoutParams) mEmptyTextHint.getLayoutParams()).gravity = gravity;
  /development/samples/ApiDemos/src/com/example/android/apis/view/
LinearLayout8.java 26 import android.view.Gravity;
32 * Demonstrates horizontal and vertical gravity
84 mLinearLayout.setVerticalGravity(Gravity.TOP);
87 mLinearLayout.setVerticalGravity(Gravity.CENTER_VERTICAL);
90 mLinearLayout.setVerticalGravity(Gravity.BOTTOM);
94 mLinearLayout.setHorizontalGravity(Gravity.LEFT);
97 mLinearLayout.setHorizontalGravity(Gravity.CENTER_HORIZONTAL);
100 mLinearLayout.setHorizontalGravity(Gravity.RIGHT);
  /packages/apps/Calendar/src/com/android/calendar/
MultiStateButton.java 23 import android.view.Gravity;
163 final int verticalGravity = getGravity() & Gravity.VERTICAL_GRAVITY_MASK;
164 final int horizontalGravity = getGravity() & Gravity.HORIZONTAL_GRAVITY_MASK;
172 case Gravity.BOTTOM:
175 case Gravity.CENTER_VERTICAL:
180 case Gravity.RIGHT:
183 case Gravity.CENTER_HORIZONTAL:
  /packages/apps/Launcher3/src/com/android/launcher3/allapps/
AllAppsBackgroundDrawable.java 27 import android.view.Gravity;
41 * @param gravity If one of the Gravity center values, the x and y offset will take the width
45 int gravity) {
49 mGravity = gravity;
66 if ((mGravity & Gravity.CENTER_HORIZONTAL) == Gravity.CENTER_HORIZONTAL) {
69 if ((mGravity & Gravity.CENTER_VERTICAL) == Gravity.CENTER_VERTICAL) {
99 0.575f, 0.1f, Gravity.CENTER_HORIZONTAL)
    [all...]
  /packages/apps/TV/src/com/android/tv/onboarding/
NewSourcesFragment.java 23 import android.view.Gravity;
47 setEnterTransition(new Slide(Gravity.BOTTOM));
48 setExitTransition(new Slide(Gravity.BOTTOM));
49 setReenterTransition(new Slide(Gravity.BOTTOM));
50 setReturnTransition(new Slide(Gravity.BOTTOM));

Completed in 687 milliseconds

1 2 3 4 5 6 7 8 91011>>