/development/samples/ApiDemos/src/com/example/android/apis/view/ |
TableLayout8.java | 27 import android.view.Gravity; 64 shortcut.setGravity(Gravity.RIGHT | Gravity.TOP);
|
TextSwitcher1.java | 23 import android.view.Gravity; 75 t.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
|
TableLayout7.java | 23 import android.view.Gravity; 73 shortcut.setGravity(Gravity.RIGHT | Gravity.TOP);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
GridLayoutTest.java | 23 import android.view.Gravity; 47 int gravity; field in class:GridLayoutTest.Alignment 51 protected Alignment(String name, int gravity) { 53 this.gravity = gravity; 58 new Alignment("LEFT", Gravity.LEFT) { 64 new Alignment("CENTER", Gravity.CENTER_HORIZONTAL) { 70 new Alignment("RIGHT", Gravity.RIGHT) { 76 new Alignment("FILL", Gravity.FILL_HORIZONTAL) { 85 new Alignment("TOP", Gravity.TOP) [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
MultiPaneChallengeLayout.java | 30 import android.view.Gravity; 262 if (Gravity.isVertical(lp.gravity)) { 264 } else if (Gravity.isHorizontal(lp.gravity)) { 367 final int gravity = Gravity.getAbsoluteGravity(lp.gravity, getLayoutDirection()); local 388 final boolean isVertical = Gravity.isVertical(gravity); 486 public int gravity = Gravity.NO_GRAVITY; field in class:MultiPaneChallengeLayout.LayoutParams [all...] |
/frameworks/base/core/java/android/widget/ |
FrameLayout.java | 28 import android.view.Gravity; 42 * and control their position within the FrameLayout by assigning gravity to each child, using the 58 private static final int DEFAULT_CHILD_GRAVITY = Gravity.TOP | Gravity.START; 82 private int mForegroundGravity = Gravity.FILL; 127 * @return foreground gravity. 140 * @param foregroundGravity See {@link android.view.Gravity} 149 if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { 150 foregroundGravity |= Gravity.START; 153 if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) 409 int gravity = lp.gravity; local 604 public int gravity = -1; field in class:FrameLayout.LayoutParams [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
GridTouchVerticalSpacingStackFromBottomTest.java | 24 import android.view.Gravity; 67 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 89 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 110 Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0,
|
GridTouchVerticalSpacingTest.java | 23 import android.view.Gravity; 61 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, 78 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, 94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT,
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
ListTouchBottomGravityManyTest.java | 23 import android.view.Gravity; 105 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 127 TouchUtils.dragViewBy(this, firstChild, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 148 Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0,
|
ListTouchManyTest.java | 23 import android.view.Gravity; 153 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, 170 TouchUtils.dragViewBy(this, lastChild, Gravity.TOP | Gravity.LEFT, 187 Gravity.TOP | Gravity.LEFT, mListView.getTop());
|
/packages/apps/Camera/src/com/android/camera/ |
OnScreenHint.java | 22 import android.view.Gravity; 43 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; 141 final int gravity = mGravity; local 142 mParams.gravity = gravity; 143 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) 144 == Gravity.FILL_HORIZONTAL) { 147 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
OnScreenHint.java | 22 import android.view.Gravity; 45 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; 143 final int gravity = mGravity; local 144 mParams.gravity = gravity; 145 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) 146 == Gravity.FILL_HORIZONTAL) { 149 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
OnScreenHint.java | 22 import android.view.Gravity; 45 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM; 144 final int gravity = mGravity; local 145 mParams.gravity = gravity; 146 if ((gravity & Gravity.HORIZONTAL_GRAVITY_MASK) 147 == Gravity.FILL_HORIZONTAL) { 150 if ((gravity & Gravity.VERTICAL_GRAVITY_MASK [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
DrawerLayout.java | 38 import android.view.Gravity; 227 mLeftCallback = new ViewDragCallback(Gravity.LEFT); 228 mRightCallback = new ViewDragCallback(Gravity.RIGHT); 252 * @param gravity Which drawer the shadow should apply to 254 public void setDrawerShadow(Drawable shadowDrawable, int gravity) { 261 final int absGravity = GravityCompat.getAbsoluteGravity(gravity, 263 if ((absGravity & Gravity.LEFT) == Gravity.LEFT) { 267 if ((absGravity & Gravity.RIGHT) == Gravity.RIGHT) 281 setDrawerShadow(getResources().getDrawable(resId), gravity); local 423 final int gravity = getDrawerViewGravity(drawerView); local 511 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local 840 final int gravity = ((LayoutParams) child.getLayoutParams()).gravity; local [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
GravityCompat.java | 22 import android.view.Gravity; 25 * Compatibility shim for accessing newer functionality from {@link android.view.Gravity}. 29 int getAbsoluteGravity(int gravity, int layoutDirection); 30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); 31 void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, 33 void applyDisplay(int gravity, Rect display, Rect inoutObj, int layoutDirection); 38 public int getAbsoluteGravity(int gravity, int layoutDirection) { 40 return gravity & ~RELATIVE_LAYOUT_DIRECTION; 44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, 46 Gravity.apply(gravity, w, h, container, outRect) [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
IconMenuItemView.java | 26 import android.view.Gravity; 186 setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); 198 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL); 272 * the TextView's gravity). 285 Gravity.apply(Gravity.CENTER_VERTICAL | Gravity.START, mIcon.getIntrinsicWidth(), mIcon
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Bitmaps3dActivity.java | 27 import android.view.Gravity; 38 layout.addView(view, new FrameLayout.LayoutParams(800, 400, Gravity.CENTER));
|
ViewFlipperActivity.java | 21 import android.view.Gravity; 37 widget.setLayoutParams(new FrameLayout.LayoutParams(180, 180, Gravity.CENTER));
|
TextureViewActivity.java | 26 import android.view.Gravity; 93 Gravity.CENTER)); 96 Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM)); 107 previewSize.width, previewSize.height, Gravity.CENTER));
|
/packages/apps/Phone/src/com/android/phone/ |
IccPanel.java | 22 import android.view.Gravity; 47 winP.setGravity(Gravity.CENTER);
|
/packages/apps/Settings/src/com/android/settings/ |
RegulatoryInfoDisplayActivity.java | 25 import android.view.Gravity; 76 messageText.setGravity(Gravity.CENTER);
|
/frameworks/base/core/java/com/android/internal/widget/ |
TextProgressBar.java | 23 import android.view.Gravity; 42 * {@link android.R.attr#gravity} will be used to automatically move it with 44 * {@link android.view.Gravity#LEFT} then the {@link Chronometer} will be placed 61 int mChronometerGravity = Gravity.NO_GRAVITY; 90 Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK); 145 // Move the Chronometer if gravity is set correctly 155 // Calculate any adjustment based on gravity 158 if (mChronometerGravity == Gravity.END) { 160 } else if (mChronometerGravity == Gravity.CENTER_HORIZONTAL) {
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
TutorialEN.java | 47 import android.view.Gravity; 86 int gravity; field in class:TutorialEN.Bubble 112 this.gravity = Gravity.TOP | Gravity.LEFT; 129 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); 168 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight() [all...] |
/frameworks/base/services/java/com/android/server/display/ |
OverlayDisplayAdapter.java | 31 import android.view.Gravity; 154 int gravity = chooseOverlayGravity(number); local 161 width, height, densityDpi, gravity)); 176 return Gravity.TOP | Gravity.LEFT; 178 return Gravity.BOTTOM | Gravity.RIGHT; 180 return Gravity.TOP | Gravity.RIGHT; 183 return Gravity.BOTTOM | Gravity.LEFT [all...] |
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
MainActivity.java | 27 import android.view.Gravity; 112 textView.setGravity(Gravity.CENTER); 124 textView.setGravity(Gravity.CENTER);
|