Searched refs:gravity (Results 1 - 22 of 22) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
H A DGravityHelper.java33 /** Helper class for looking up the gravity masks of gravity attributes */
35 /** Bitmask for a gravity which includes left */
38 /** Bitmask for a gravity which includes right */
41 /** Bitmask for a gravity which includes center horizontal */
44 /** Bitmask for a gravity which includes fill horizontal */
47 /** Bitmask for a gravity which includes center vertical */
50 /** Bitmask for a gravity which includes fill vertical */
53 /** Bitmask for a gravity which includes top */
56 /** Bitmask for a gravity whic
125 isConstrainedHorizontally(int gravity) argument
135 isConstrainedVertically(int gravity) argument
145 isLeftAligned(int gravity) argument
155 isTopAligned(int gravity) argument
164 getGravity(int gravity) argument
[all...]
H A DGridLayoutRule.java353 String gravity = computeDefaultGravity(fill);
354 if (gravity != null) {
355 node.setAttribute(getNamespace(parent), ATTR_LAYOUT_GRAVITY, gravity);
377 * Computes the default gravity to be used for a widget of the given fill
381 * @return the gravity value, or null, to be set on the widget
392 String gravity;
395 gravity = GRAVITY_VALUE_FILL;
397 gravity = horizontal + '|' + vertical;
399 gravity = horizontal;
402 return gravity;
[all...]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
H A DGridLayoutConverter.java97 * change and use this to infer gravity
171 // In a GridLayout, a row or column is stretchable if it defines a gravity (regardless
172 // of what the gravity is -- in other words, a column is not just stretchable if it
173 // has gravity=fill but also if it has gravity=left). Furthermore, ALL the elements
185 int gravity = GravityHelper.getGravity(view.mGravity, 0);
186 if ((gravity & GRAVITY_HORIZ_MASK) == 0) {
191 if ((gravity & GRAVITY_VERT_MASK) == 0) {
236 String gravity;
238 gravity
[all...]
H A DRelativeLayoutConversionHelper.java302 * alignment, weights, gravity, etc.
372 * relationships it can infer - based on baseline alignment, gravity, order and
528 // Only align if they share the same gravity
541 * Checks the layout "gravity" value for the given child and updates the constraints
542 * to account for the gravity
546 // Use gravity to constrain elements in the axis orthogonal to the
548 int gravity = childView.getGravity();
550 if ((gravity & GRAVITY_RIGHT) != 0) {
561 } else if ((gravity & GRAVITY_CENTER_HORIZ) != 0) {
570 } else if ((gravity
[all...]
H A DUseCompoundDrawableRefactoring.java267 // as well as android:gravity
278 String gravity = layout.getAttributeNS(ANDROID_URI, ATTR_GRAVITY);
279 if (gravity.length() > 0) {
280 setAndroidAttribute(newTextElement, androidNsPrefix, ATTR_GRAVITY, gravity);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
H A DGridDropHandler.java141 // TODO: Decide whether it should be gravity left or right...
175 // TODO: Find out where within the cell we are, and offer to tweak the gravity
645 // Set the cell position (gravity) of the new widget
646 int gravity = 0;
648 gravity |= GravityHelper.GRAVITY_RIGHT;
650 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ;
654 // There *is* no baseline gravity constant, instead, leave the
655 // vertical gravity unspecified and GridLayout will treat it as
657 //gravity |= GravityHelper.GRAVITY_BASELINE;
659 gravity |
[all...]
H A DGridModel.java291 // baseline if they have a vertical gravity
292 String gravity = getGridAttribute(view.node, ATTR_LAYOUT_GRAVITY);
293 if (gravity == null
294 || !(gravity.contains(VALUE_TOP)
295 || gravity.contains(VALUE_BOTTOM)
296 || gravity.contains(VALUE_CENTER_VERTICAL))) {
833 && ((view.gravity & (GRAVITY_CENTER_HORIZ | GRAVITY_RIGHT)) == 0)) {
837 && ((view.gravity & (GRAVITY_CENTER_VERT | GRAVITY_BOTTOM)) == 0)) {
1686 // *bounds* of this node (provided it has gravity=left)
1687 // (3) the new column is within the last cell and the cell has gravity
1820 public int gravity; field in class:GridModel.ViewData
[all...]
/sdk/testapps/gridlayoutTest/v7-gridlayout/libs/
H A Dandroid-support-v7-gridlayout.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v7/ android/support/v7/widget/ ...
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
H A DProjectCallback.java215 Class<?> gravity =
218 Field centerField = gravity.getField("CENTER"); //$NON-NLS-1$
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
H A DOutlinePage.java881 String gravity = e.getAttributeNS(namespace, ATTR_LAYOUT_GRAVITY);
882 if (gravity != null && gravity.length() > 0) {
884 styledString.append(gravity, COUNTER_STYLER);
/sdk/testapps/jarCheckTests3/lib2/libs/
H A Dandroid-support-v13.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v13/ android/support/v13/app/ ...
/sdk/apps/NotificationStudio/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/util/ ...
/sdk/testapps/jarCheckTests1/app/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/jarCheckTests1/lib1/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/jarCheckTests1/lib2/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/jarCheckTests2/lib1/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/jarCheckTests2/lib2/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/jarCheckTests3/lib1/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/javaProjectTest/lib1/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/javaProjectTest/lib2/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/libsAndJarTest/lib1/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...
/sdk/testapps/libsAndJarTest/lib2/libs/
H A Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/support/v4/ android/support/v4/accessibilityservice/ ...

Completed in 356 milliseconds