Freigeben über


LayoutRules Enum

Definition

public enum LayoutRules
type LayoutRules = 
Inheritance
LayoutRules

Fields

Name Value Description
True -1
LeftOf 0

Rule that aligns a child's right edge with another child's left edge.

RightOf 1

Rule that aligns a child's left edge with another child's right edge.

Above 2

Rule that aligns a child's bottom edge with another child's top edge.

Below 3

Rule that aligns a child's top edge with another child's bottom edge.

AlignBaseline 4

Rule that aligns a child's baseline with another child's baseline.

AlignLeft 5

Rule that aligns a child's left edge with another child's left edge.

AlignTop 6

Rule that aligns a child's top edge with another child's top edge.

AlignRight 7

Rule that aligns a child's right edge with another child's right edge.

AlignBottom 8

Rule that aligns a child's bottom edge with another child's bottom edge.

AlignParentLeft 9

Rule that aligns the child's left edge with its RelativeLayout parent's left edge.

AlignParentTop 10

Rule that aligns the child's top edge with its RelativeLayout parent's top edge.

AlignParentRight 11

Rule that aligns the child's right edge with its RelativeLayout parent's right edge.

AlignParentBottom 12

Rule that aligns the child's bottom edge with its RelativeLayout parent's bottom edge.

CenterInParent 13

Rule that centers the child with respect to the bounds of its RelativeLayout parent.

CenterHorizontal 14

Rule that centers the child horizontally with respect to the bounds of its RelativeLayout parent.

CenterVertical 15

Rule that centers the child vertically with respect to the bounds of its RelativeLayout parent.

StartOf 16

Rule that aligns a child's end edge with another child's start edge.

EndOf 17

Rule that aligns a child's start edge with another child's end edge.

AlignStart 18

Rule that aligns a child's start edge with another child's start edge.

AlignEnd 19

Rule that aligns a child's end edge with another child's end edge.

AlignParentStart 20

Rule that aligns the child's start edge with its RelativeLayout parent's start edge.

AlignParentEnd 21

Rule that aligns the child's end edge with its RelativeLayout parent's end edge.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to