HomeSort by relevance Sort by last modified time
    Searched defs:gravity (Results 1 - 25 of 63) sorted by null

1 2 3

  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
GravityHelper.java 33 /** Helper class for looking up the gravity masks of gravity attributes */
49 * Returns the gravity of the given element
51 * @param element the element to look up the gravity for
60 * Returns the gravity bitmask for the given gravity string description
62 * @param gravityString the gravity string description
64 * @return a bitmask corresponding to the gravity description
67 int gravity = defaultMask; local
72 gravity = GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT
    [all...]
GridLayoutRule.java 168 // Gravity and margins
336 String gravity = computeDefaultGravity(fill); local
337 if (gravity != null) {
338 node.setAttribute(getNamespace(parent), ATTR_LAYOUT_GRAVITY, gravity); local
360 * Computes the default gravity to be used for a widget of the given fill
364 * @return the gravity value, or null, to be set on the widget
375 String gravity; local
378 gravity = GRAVITY_VALUE_FILL;
380 gravity = horizontal + '|' + vertical;
382 gravity = horizontal
    [all...]
  /external/jmonkeyengine/engine/src/bullet-native/
com_jme3_bullet_PhysicsSpace.cpp 370 btVector3 gravity = btVector3(); local
371 jmeBulletUtil::convert(env, vector, &gravity);
372 space->getDynamicsWorld()->setGravity(gravity);
  /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/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...]
  /external/quake/quake/src/QW/client/
pmove.h 75 float gravity; member in struct:__anon11613
  /external/replicaisland/src/com/replica/replicaisland/
OrbitalMagnetComponent.java 83 // remove gravity
85 GravityComponent gravity = target.findByClass(GravityComponent.class); local
86 final Vector2 gravityVector = gravity.getGravity();
PhysicsComponent.java 84 GravityComponent gravity = parentObject.findByClass(GravityComponent.class); local
87 && gravity != null) {
88 final Vector2 gravityVector = gravity.getGravity();
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
UseCompoundDrawableRefactoring.java 251 // as well as android:gravity
262 String gravity = layout.getAttributeNS(ANDROID_URI, ATTR_GRAVITY); local
263 if (gravity.length() > 0) {
264 setAndroidAttribute(newTextElement, androidNsPrefix, ATTR_GRAVITY, gravity);
GridLayoutConverter.java 95 * change and use this to infer gravity
169 // In a GridLayout, a row or column is stretchable if it defines a gravity (regardless
170 // of what the gravity is -- in other words, a column is not just stretchable if it
171 // has gravity=fill but also if it has gravity=left). Furthermore, ALL the elements
183 int gravity = GravityHelper.getGravity(view.mGravity, 0); local
184 if ((gravity & GRAVITY_HORIZ_MASK) == 0) {
189 if ((gravity & GRAVITY_VERT_MASK) == 0) {
234 String gravity; local
236 gravity = GRAVITY_VALUE_FILL
404 String gravity = element.getAttributeNS(ANDROID_URI, ATTR_LAYOUT_GRAVITY); local
    [all...]
  /frameworks/base/core/java/android/app/
ActionBar.java 23 import android.view.Gravity;
928 public int gravity = -1; field in class:ActionBar.LayoutParams
    [all...]
  /frameworks/base/core/java/android/widget/
TableRow.java 23 import android.view.Gravity;
206 final int gravity = lp.gravity; local
207 final boolean isHorizontalGravity = Gravity.isHorizontal(gravity);
230 final int absoluteGravity = Gravity.getAbsoluteGravity(gravity, layoutDirection);
231 switch (absoluteGravity & Gravity.HORIZONTAL_GRAVITY_MASK) {
232 case Gravity.LEFT:
235 case Gravity.RIGHT
    [all...]
Toast.java 28 import android.view.Gravity;
195 * @see android.view.Gravity
198 public void setGravity(int gravity, int xOffset, int yOffset) {
199 mTN.mGravity = gravity;
206 * @see android.view.Gravity
214 * Return the X offset in pixels to apply to the gravity's location.
221 * Return the Y offset in pixels to apply to the gravity's location.
324 int mGravity = Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
374 final int gravity = mGravity local
    [all...]
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.LEFT;
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...]
PopupWindow.java 31 import android.view.Gravity;
798 * for more information on how gravity and the x and y parameters are related. Specifying
799 * a gravity of {@link android.view.Gravity#NO_GRAVITY} is similar to specifying
800 * <code>Gravity.LEFT | Gravity.TOP</code>.
804 * @param gravity the gravity which controls the placement of the popup window
808 public void showAtLocation(View parent, int gravity, int x, int y) {
809 showAtLocation(parent.getWindowToken(), gravity, x, y) local
    [all...]
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")
1079 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1251 final int gravity = (lp.gravity < 0 ? mGravity : lp.gravity) local
1480 int gravity = lp.gravity; local
1592 int gravity = lp.gravity; local
1703 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
1712 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
1803 public int gravity = -1; field in class:LinearLayout.LayoutParams
    [all...]
RelativeLayout.java 38 import android.view.Gravity;
167 private int mGravity = Gravity.LEFT | Gravity.TOP;
206 * Defines which View is ignored when the gravity is applied. This setting has no
207 * effect if the gravity is <code>Gravity.LEFT | Gravity.TOP</code>.
209 * @param viewId The id of the View to be ignored by gravity, or 0 if no View
224 * @return the gravity.
227 * @see android.view.Gravity
269 final int gravity = horizontalGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
278 final int gravity = verticalGravity & Gravity.VERTICAL_GRAVITY_MASK; local
371 int gravity = mGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK; local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/widget/
InterpolatingLayout.java 25 import android.view.Gravity;
291 int gravity = params.gravity; local
292 if (gravity == -1) {
293 gravity = Gravity.LEFT | Gravity.TOP;
311 Gravity.apply(gravity, child.getMeasuredWidth(), child.getMeasuredHeight(),
  /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...]
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
TutorialJAJP.java 47 import android.view.Gravity;
88 int gravity; field in class:TutorialJAJP.Bubble
114 this.gravity = Gravity.TOP | Gravity.LEFT;
131 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
170 if ((gravity & Gravity.BOTTOM) == Gravity.BOTTOM) offy -= window.getHeight()
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
ProjectCallback.java 200 // Call MockView.setGravity(Gravity.CENTER) to get the text centered in
204 // Look up android.view.Gravity#CENTER - or can we just hard-code
206 Class<?> gravity = local
207 Class.forName("android.view.Gravity", //$NON-NLS-1$
209 Field centerField = gravity.getField("CENTER"); //$NON-NLS-1$
  /external/jmonkeyengine/engine/src/core/com/jme3/effect/
ParticleEmitter.java 96 private Vector3f gravity = new Vector3f(0.0f, 0.1f, 0.0f); field in class:ParticleEmitter
572 * Get the gravity vector.
574 * @return the gravity vector.
579 return gravity;
583 * This method sets the gravity vector.
585 * @param gravity the gravity vector
587 public void setGravity(Vector3f gravity) {
588 this.gravity.set(gravity);
    [all...]
  /frameworks/base/core/java/android/view/
WindowManager.java 79 * X position for this window. With the default gravity it is ignored.
80 * When using {@link Gravity#LEFT} or {@link Gravity#START} or {@link Gravity#RIGHT} or
81 * {@link Gravity#END} it provides an offset from the given edge.
87 * Y position for this window. With the default gravity it is ignored.
88 * When using {@link Gravity#TOP} or {@link Gravity#BOTTOM} it provides
992 public int gravity; field in class:WindowManager.LayoutParams
    [all...]
  /packages/apps/Browser/src/com/android/browser/
AddBookmarkPage.java 626 int gravity = mMap.getInt("gravity", -1); local
627 if (gravity != -1) {
629 l.gravity = gravity;
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
GridModel.java 259 // baseline if they have a vertical gravity
260 String gravity = getGridAttribute(view.node, ATTR_LAYOUT_GRAVITY); local
261 if (gravity == null
262 || !(gravity.contains(VALUE_TOP)
263 || gravity.contains(VALUE_BOTTOM)
264 || gravity.contains(VALUE_CENTER_VERTICAL))) {
727 && ((view.gravity & (GRAVITY_CENTER_HORIZ | GRAVITY_RIGHT)) == 0)) {
731 && ((view.gravity & (GRAVITY_CENTER_VERT | GRAVITY_BOTTOM)) == 0)) {
1652 public int gravity; field in class:GridModel.ViewData
    [all...]

Completed in 558 milliseconds

1 2 3