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

1 2 3 4 5 6 7 8 910

  /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/v4/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/Gallery2/src/com/android/camera/ui/
RotatableLayout.java 23 import android.view.Gravity;
151 int gravity = lp.gravity; local
153 // rotate gravity
154 if (contains(gravity, Gravity.LEFT)) {
155 ngravity |= Gravity.TOP;
157 if (contains(gravity, Gravity.RIGHT)) {
158 ngravity |= Gravity.BOTTOM
194 int gravity = lp.gravity; local
    [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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
StatusBar.java 27 import android.view.Gravity;
37 setGravity(Gravity.START | Gravity.TOP | Gravity.RIGHT);
  /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};
  /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/base/core/java/android/app/
ActionBar.java 23 import android.view.Gravity;
1025 public int gravity = Gravity.NO_GRAVITY; field in class:ActionBar.LayoutParams
    [all...]
  /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));
OpaqueActivity.java 25 import android.view.Gravity;
36 setContentView(view, new FrameLayout.LayoutParams(100, 100, Gravity.CENTER));
TimeDialogActivity.java 22 import android.view.Gravity;
36 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
GetBitmapActivity.java 25 import android.view.Gravity;
73 content.addView(mTextureView, new FrameLayout.LayoutParams(500, 400, Gravity.CENTER));
76 Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM));
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
MockView.java 22 import android.view.Gravity;
38 setGravity(Gravity.CENTER);
  /frameworks/base/core/java/android/widget/
LinearLayout.java 26 import android.view.Gravity;
38 * You can also specify gravity, which specifies the alignment of all the child elements by
111 @ViewDebug.FlagToString(mask = Gravity.NO_GRAVITY,
112 equals = Gravity.NO_GRAVITY,name = "NONE"),
113 @ViewDebug.FlagToString(mask = Gravity.TOP,
114 equals = Gravity.TOP, name = "TOP"),
115 @ViewDebug.FlagToString(mask = Gravity.BOTTOM,
116 equals = Gravity.BOTTOM, name = "BOTTOM"),
117 @ViewDebug.FlagToString(mask = Gravity.LEFT,
118 equals = Gravity.LEFT, name = "LEFT")
1093 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1265 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1498 int gravity = lp.gravity; local
1614 int gravity = lp.gravity; local
1725 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
1734 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
1825 public int gravity = -1; field in class:LinearLayout.LayoutParams
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
ClipDrawableTest.java 40 import android.view.Gravity;
45 new ClipDrawable((Drawable) null, Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
48 new ClipDrawable(bmpDrawable, Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
55 Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
72 Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
80 Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
88 Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
92 clipDrawable = new ClipDrawable(mockDrawable, Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
102 Gravity.BOTTOM, ClipDrawable.HORIZONTAL);
108 clipDrawable = new ClipDrawable(bmpDrawable, Gravity.BOTTOM, ClipDrawable.HORIZONTAL)
    [all...]
ScaleDrawableTest.java 38 import android.view.Gravity;
45 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200);
54 Gravity.CENTER, 100, 200);
74 Gravity.CENTER, 100, 200);
97 Gravity.CENTER, 100, 200);
159 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
180 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
194 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
210 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200);
230 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200)
    [all...]
  /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:
  /frameworks/base/core/java/android/inputmethodservice/
SoftInputWindow.java 23 import android.view.Gravity;
97 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) {
116 if (lp.gravity == Gravity.TOP || lp.gravity == Gravity.BOTTOM) {
129 * @param gravity The boundary of the screen to stick. See {#lin
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarDisplayOptions.java 25 import android.view.Gravity;
98 switch (lp.gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) {
99 case Gravity.START:
100 newGravity = Gravity.CENTER_HORIZONTAL;
102 case Gravity.CENTER_HORIZONTAL:
103 newGravity = Gravity.END;
105 case Gravity.END:
106 newGravity = Gravity.START;
109 lp.gravity = lp.gravity & ~Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK | newGravity
    [all...]
  /development/samples/Support7Demos/src/com/example/android/supportv7/app/
ActionBarDisplayOptions.java 23 import android.view.Gravity;
105 switch (lp.gravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
106 case Gravity.LEFT:
107 newGravity = Gravity.CENTER_HORIZONTAL;
109 case Gravity.CENTER_HORIZONTAL:
110 newGravity = Gravity.RIGHT;
112 case Gravity.RIGHT:
113 newGravity = Gravity.LEFT;
116 lp.gravity = lp.gravity & ~Gravity.HORIZONTAL_GRAVITY_MASK | newGravity
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
CustomToastSystem.java 21 import android.view.Gravity;
52 mToast.setGravity(Gravity.CENTER, 0, 0);

Completed in 2461 milliseconds

1 2 3 4 5 6 7 8 910