Searched refs:gravityString (Results 1 – 2 of 2) sorted by relevance
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | GravityHelper.java | 85 String gravityString = element.getAttributeNS(ANDROID_URI, ATTR_LAYOUT_GRAVITY); in getGravity() local 86 return getGravity(gravityString, GRAVITY_LEFT | GRAVITY_TOP); in getGravity() 96 public static int getGravity(String gravityString, int defaultMask) { in getGravity() argument 98 if (gravityString != null && !gravityString.isEmpty()) { in getGravity() 99 String[] anchors = gravityString.split("\\|"); //$NON-NLS-1$ in getGravity()
|
D | GridLayoutRule.java | 469 String gravityString = grid.getGridAttribute(view.node, ATTR_LAYOUT_GRAVITY); in setNewSizeBounds() local 470 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds() 489 gravityString = GravityHelper.getGravity(gravity); in setNewSizeBounds() 490 grid.setGridAttribute(view.node, ATTR_LAYOUT_GRAVITY, gravityString); in setNewSizeBounds() 506 String gravityString = grid.getGridAttribute(view.node, ATTR_LAYOUT_GRAVITY); in setNewSizeBounds() local 507 int gravity = GravityHelper.getGravity(gravityString, 0); in setNewSizeBounds() 516 gravityString = GravityHelper.getGravity(gravity); in setNewSizeBounds() 517 grid.setGridAttribute(view.node, ATTR_LAYOUT_GRAVITY, gravityString); in setNewSizeBounds()
|