/development/samples/ApiDemos/src/com/example/android/apis/view/ |
TableLayout7.java | 23 import android.view.Gravity; 73 shortcut.setGravity(Gravity.RIGHT | Gravity.TOP);
|
/development/samples/browseable/TextSwitcher/src/com.example.android.textswitcher/ |
MainActivity.java | 21 import android.view.Gravity; 98 t.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
ContactListPinnedHeaderView.java | 24 import android.view.Gravity; 54 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/ |
ButtonBarLayout.java | 21 import android.view.Gravity; 99 setGravity(stacked ? Gravity.END : Gravity.BOTTOM);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarDisplayOptions.java | 25 import android.view.Gravity; 104 switch (lp.gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) { 105 case Gravity.START: 106 newGravity = Gravity.CENTER_HORIZONTAL; 108 case Gravity.CENTER_HORIZONTAL: 109 newGravity = Gravity.END; 111 case Gravity.END: 112 newGravity = Gravity.START; 115 lp.gravity = lp.gravity & ~Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK | newGravity [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
ScaleDrawableTest.java | 56 import android.view.Gravity; 80 ScaleDrawable scaleDrawable = new ScaleDrawable(d, Gravity.CENTER, 100, 200); 90 Gravity.CENTER, 100, 200); 111 Gravity.CENTER, 100, 200); 132 Gravity.CENTER, 100, 200); 152 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); 175 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); 190 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); 200 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); 208 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200) [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
SurfaceViewSyncTest.java | 36 import android.view.Gravity; 272 new FrameLayout.LayoutParams(100, 100, Gravity.LEFT | Gravity.TOP), 286 new FrameLayout.LayoutParams(100, 100, Gravity.LEFT | Gravity.TOP), 296 new FrameLayout.LayoutParams(320, 240, Gravity.LEFT | Gravity.TOP), 305 new FrameLayout.LayoutParams(640, 480, Gravity.LEFT | Gravity.TOP), 314 new FrameLayout.LayoutParams(640, 480, Gravity.LEFT | Gravity.TOP) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
GridLayoutTest.java | 33 import android.view.Gravity; 60 int gravity; field in class:GridLayoutTest.Alignment 64 protected Alignment(String name, int gravity) { 66 this.gravity = gravity; 71 new Alignment("LEFT", Gravity.LEFT) { 77 new Alignment("CENTER", Gravity.CENTER_HORIZONTAL) { 83 new Alignment("RIGHT", Gravity.RIGHT) { 89 new Alignment("FILL", Gravity.FILL_HORIZONTAL) { 98 new Alignment("TOP", Gravity.TOP) [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
DrawerLayout.java | 48 import android.view.Gravity; 143 @IntDef({Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END}) 225 /** Shadow drawables for different gravity */ 378 mLeftCallback = new ViewDragCallback(Gravity.LEFT); 379 mRightCallback = new ViewDragCallback(Gravity.RIGHT); 458 * defined with a resource qualifier "ldrtl" for API 17 and above with the gravity 463 * @param gravity Which drawer the shadow should apply to 465 public void setDrawerShadow(Drawable shadowDrawable, @EdgeGravity int gravity) { 475 if ((gravity & GravityCompat.START) == GravityCompat.START) 505 setDrawerShadow(ContextCompat.getDrawable(getContext(), resId), gravity); local 679 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local 932 final int gravity = ((LayoutParams) drawerView.getLayoutParams()).gravity; local 1420 final int gravity = ((LayoutParams) child.getLayoutParams()).gravity; local 2228 public int gravity = Gravity.NO_GRAVITY; field in class:DrawerLayout.LayoutParams [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
AlertDialogLayout.java | 25 import android.view.Gravity; 284 final int gravity = getGravity(); local 285 final int majorGravity = gravity & Gravity.VERTICAL_GRAVITY_MASK; 286 final int minorGravity = gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; 290 case Gravity.BOTTOM: 296 case Gravity.CENTER_VERTICAL: 300 case Gravity.TOP: 319 int layoutGravity = lp.gravity; [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
FadeAndShortSlide.java | 34 import android.view.Gravity; 155 this(Gravity.START); 165 int edge = a.getInt(R.styleable.lbSlide_lb_slideEdge, Gravity.START); 199 case Gravity.START: 202 case Gravity.END: 205 case Gravity.START | Gravity.END: 208 case Gravity.TOP: 211 case Gravity.BOTTOM: 214 case Gravity.TOP | Gravity.BOTTOM [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
GridItemPresenter.java | 21 import android.view.Gravity; 46 view.setGravity(Gravity.CENTER);
|
/developers/build/prebuilts/gradle/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/ |
SimpleTextFragment.java | 23 import android.view.Gravity; 59 mTextView.setGravity(Gravity.CENTER);
|
/developers/build/prebuilts/gradle/ElevationDrag/Application/tests/src/com/example/android/elevationdrag/tests/ |
SampleTests.java | 22 import android.view.Gravity; 78 Gravity.CENTER,
|
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/tests/src/com/example/android/swiperefreshlayoutbasic/tests/ |
SampleTests.java | 24 import android.view.Gravity; 75 Gravity.CENTER,
|
/developers/samples/android/connectivity/network/BasicNetworking/Application/src/main/java/com/example/android/basicnetworking/ |
SimpleTextFragment.java | 23 import android.view.Gravity; 59 mTextView.setGravity(Gravity.CENTER);
|
/developers/samples/android/ui/views/Elevation/ElevationDrag/Application/tests/src/com/example/android/elevationdrag/tests/ |
SampleTests.java | 22 import android.view.Gravity; 78 Gravity.CENTER,
|
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/Application/tests/src/com/example/android/swiperefreshlayoutbasic/tests/ |
SampleTests.java | 24 import android.view.Gravity; 75 Gravity.CENTER,
|
/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/ |
SimpleTextFragment.java | 23 import android.view.Gravity; 59 mTextView.setGravity(Gravity.CENTER);
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
IconMenuItemView.java | 27 import android.view.Gravity; 200 setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL); 212 setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL); 287 * the TextView's gravity). 300 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));
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
CoordinatorLayoutTest.java | 55 import android.view.Gravity; 155 // gravity, expected left, expected top 156 {Gravity.NO_GRAVITY, 0, 0}, 157 {Gravity.LEFT, 0, 0}, 159 {Gravity.TOP, 0, 0}, 160 {Gravity.CENTER, horizontallyCentered, verticallyCentered}, 161 {Gravity.CENTER_HORIZONTAL, horizontallyCentered, 0}, 162 {Gravity.CENTER_VERTICAL, 0, verticallyCentered}, 163 {Gravity.RIGHT, end, 0}, 165 {Gravity.BOTTOM, 0, bottom} [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
BrowseErrorActivity.java | 20 import android.view.Gravity; 60 Gravity.CENTER);
|
BrowseErrorSupportActivity.java | 23 import android.view.Gravity; 63 Gravity.CENTER);
|