/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | GravityHelper.java | 97 int gravity = defaultMask; in getGravity() local 102 gravity = GRAVITY_CENTER_HORIZ | GRAVITY_CENTER_VERT; in getGravity() 104 gravity = GRAVITY_FILL_HORIZ | GRAVITY_FILL_VERT; in getGravity() 106 gravity = (gravity & GRAVITY_HORIZ_MASK) | GRAVITY_CENTER_VERT; in getGravity() 108 gravity = (gravity & GRAVITY_VERT_MASK) | GRAVITY_CENTER_HORIZ; in getGravity() 110 gravity = (gravity & GRAVITY_HORIZ_MASK) | GRAVITY_FILL_VERT; in getGravity() 112 gravity = (gravity & GRAVITY_VERT_MASK) | GRAVITY_FILL_HORIZ; in getGravity() 114 gravity = (gravity & GRAVITY_HORIZ_MASK) | GRAVITY_TOP; in getGravity() 116 gravity = (gravity & GRAVITY_HORIZ_MASK) | GRAVITY_BOTTOM; in getGravity() 118 gravity = (gravity & (GRAVITY_VERT_MASK|GRAVITY_START)) | GRAVITY_LEFT; in getGravity() [all …]
|
D | GridLayoutRule.java | 358 String gravity = computeDefaultGravity(fill); in onChildInserted() local 359 if (gravity != null) { in onChildInserted() 360 node.setAttribute(getNamespace(parent), ATTR_LAYOUT_GRAVITY, gravity); in onChildInserted() local 398 String gravity; in computeDefaultGravity() local 401 gravity = GRAVITY_VALUE_FILL; in computeDefaultGravity() 403 gravity = horizontal + '|' + vertical; in computeDefaultGravity() 405 gravity = horizontal; in computeDefaultGravity() 408 return gravity; in computeDefaultGravity() 470 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds() local 474 gravity &= ~GravityHelper.GRAVITY_HORIZ_MASK; in setNewSizeBounds() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/ |
D | completion1-expected-applyCompletion7a.diff | 1 Code completion in completion1.xml for android:gravity="l^eft|bottom" selecting left: 3 - android:gravity="l^eft|bottom" 4 + android:gravity="left^"
|
D | completion1-expected-applyCompletion7b.diff | 1 Code completion in completion1.xml for android:gravity="left|b^ottom" selecting bottom: 3 - android:gravity="left|b^ottom" 4 + android:gravity="left|bottom^"
|
D | completionvalues1-expected-applyCompletion28.diff | 1 Code completion in completionvalues1.xml for <item name="android:gravity"> ^</item> selecting left: 3 - <item name="android:gravity"> ^</item> 4 + <item name="android:gravity"> left^</item>
|
D | completionvalues1-expected-applyCompletion27.diff | 1 Code completion in completionvalues1.xml for <item name="android:gravity">^ </item> selecting cent… 3 - <item name="android:gravity">^ </item> 4 + <item name="android:gravity">center_vertical^</item>
|
D | completion2-expected-applyCompletion13a.diff | 1 Code completion in completion2.xml for gravity="left|bottom|^cen selecting fill_vertical: 3 - <TextView android:gravity="left|bottom|^cen"></TextView> 4 + <TextView android:gravity="left|bottom|fill_vertical^"></TextView>
|
D | completion2-expected-applyCompletion13b.diff | 1 Code completion in completion2.xml for gravity="left|bottom|cen^ selecting center_horizontal: 3 - <TextView android:gravity="left|bottom|cen^"></TextView> 4 + <TextView android:gravity="left|bottom|center_horizontal^"></TextView>
|
D | completion2-expected-applyCompletion13c.diff | 1 Code completion in completion2.xml for gravity="left|bottom^|cen selecting bottom|fill_horizontal: 3 - <TextView android:gravity="left|bottom^|cen"></TextView> 4 + <TextView android:gravity="left|bottom|fill_horizontal^"></TextView>
|
D | completionvalues1-expected-applyCompletion29.diff | 1 Code completion in completionvalues1.xml for <item name="gr^"> selecting android:gravity: 4 + <item name="android:gravity"^>@color/title_color</item>
|
D | completion1-expected-completion7b.txt | 1 Code completion in completion1.xml for android:gravity="left|b^ottom":
|
D | completion1-expected-completion7a.txt | 1 Code completion in completion1.xml for android:gravity="l^eft|bottom":
|
D | completion2-expected-completion13b.txt | 1 Code completion in completion2.xml for gravity="left|bottom|cen^:
|
D | completion2-expected-completion13a.txt | 1 Code completion in completion2.xml for gravity="left|bottom|^cen:
|
D | completionvalues1-expected-completion28.txt | 1 Code completion in completionvalues1.xml for <item name="android:gravity"> ^</item>:
|
D | completionvalues1-expected-completion27.txt | 1 Code completion in completionvalues1.xml for <item name="android:gravity">^ </item>:
|
D | completion2-expected-completion13c.txt | 1 Code completion in completion2.xml for gravity="left|bottom^|cen:
|
D | completionvalues1-expected-completion29.txt | 2 android:gravity : Specifies how to place the content of an object, both on the x- and y-axis, with…
|
D | completion8-expected-completion44.txt | 5 android:layout_gravity : Standard gravity constant that a child can supply to its parent. [flag]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
D | GridDropHandler.java | 700 int gravity = 0; in handleFreeFormDrop() 702 gravity |= GravityHelper.GRAVITY_RIGHT; in handleFreeFormDrop() 704 gravity |= GravityHelper.GRAVITY_CENTER_HORIZ; in handleFreeFormDrop() 713 gravity |= GravityHelper.GRAVITY_BOTTOM; in handleFreeFormDrop() 715 gravity |= GravityHelper.GRAVITY_CENTER_VERT; in handleFreeFormDrop() 723 if (!GravityHelper.isConstrainedHorizontally(gravity)) { in handleFreeFormDrop() 724 gravity |= GravityHelper.GRAVITY_LEFT; in handleFreeFormDrop() 738 mGrid.setGridAttribute(newChild, ATTR_LAYOUT_GRAVITY, getGravity(gravity)); in handleFreeFormDrop() 783 int gravity = 0; in handleGridModeDrop() local 785 gravity |= GravityHelper.GRAVITY_RIGHT; in handleGridModeDrop() [all …]
|
D | GridModel.java | 292 String gravity = getGridAttribute(view.node, ATTR_LAYOUT_GRAVITY); in getBaseline() local 293 if (gravity == null in getBaseline() 294 || !(gravity.contains(VALUE_TOP) in getBaseline() 295 || gravity.contains(VALUE_BOTTOM) in getBaseline() 296 || gravity.contains(VALUE_CENTER_VERTICAL))) { in getBaseline() 849 && ((view.gravity & (GRAVITY_CENTER_HORIZ | GRAVITY_RIGHT)) == 0)) { in initializeMaxBounds() 853 && ((view.gravity & (GRAVITY_CENTER_VERT | GRAVITY_BOTTOM)) == 0)) { in initializeMaxBounds() 1716 || GravityHelper.isConstrainedHorizontally(view.gravity) in splitColumn() 1717 && !GravityHelper.isLeftAligned(view.gravity))) { in splitColumn() 1801 || GravityHelper.isConstrainedVertically(view.gravity) in splitRow() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | GridLayoutConverter.java | 185 int gravity = GravityHelper.getGravity(view.mGravity, 0); in insertStretchableSpans() local 186 if ((gravity & GRAVITY_HORIZ_MASK) == 0) { in insertStretchableSpans() 191 if ((gravity & GRAVITY_VERT_MASK) == 0) { in insertStretchableSpans() 239 String gravity; in insertStretchableSpans() local 241 gravity = GRAVITY_VALUE_FILL; in insertStretchableSpans() 243 gravity = GRAVITY_VALUE_FILL_VERTICAL; in insertStretchableSpans() 246 gravity = GRAVITY_VALUE_FILL_HORIZONTAL; in insertStretchableSpans() 250 sb.append(ATTR_LAYOUT_GRAVITY).append('=').append('"').append(gravity); in insertStretchableSpans() 409 String gravity = element.getAttributeNS(ANDROID_URI, ATTR_LAYOUT_GRAVITY); in processGravities() local 414 newGravity = gravity = GRAVITY_VALUE_FILL_HORIZONTAL; in processGravities() [all …]
|
D | RelativeLayoutConversionHelper.java | 546 int gravity = childView.getGravity(); in analyzeGravity() local 548 if ((gravity & GRAVITY_RIGHT) != 0) { in analyzeGravity() 559 } else if ((gravity & GRAVITY_CENTER_HORIZ) != 0) { in analyzeGravity() 568 } else if ((gravity & GRAVITY_FILL_HORIZ) != 0) { in analyzeGravity() 584 } else if ((gravity & GRAVITY_LEFT) != 0) { in analyzeGravity() 598 if ((gravity & GRAVITY_BOTTOM) != 0) { in analyzeGravity() 609 } else if ((gravity & GRAVITY_CENTER_VERT) != 0) { in analyzeGravity() 618 } else if ((gravity & GRAVITY_FILL_VERT) != 0) { in analyzeGravity() 634 } else if ((gravity & GRAVITY_TOP) != 0) { in analyzeGravity() 647 return gravity; in analyzeGravity()
|
D | UseCompoundDrawableRefactoring.java | 278 String gravity = layout.getAttributeNS(ANDROID_URI, ATTR_GRAVITY); in computeChanges() local 279 if (gravity.length() > 0) { in computeChanges() 280 setAndroidAttribute(newTextElement, androidNsPrefix, ATTR_GRAVITY, gravity); in computeChanges()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
D | GravityHelperTest.java | 124 int gravity = GravityHelper.getGravity(element); in testElement() local 125 assertEquals("left|start|center_vertical", GravityHelper.getGravity(gravity)); in testElement()
|