可绘制内容位于控件的位置

Since

1.1.0

Enumeration Members

GRAVITY_LEFT: 1

将控件显示在其容器的左侧,而不更改其大小

Since

1.1.0

GRAVITY_TOP: 2

将控件显示在其容器的顶部,而不更改其大小

Since

1.1.0

GRAVITY_RIGHT: 4

将控件显示在其容器的右侧,而不更改其大小

Since

1.1.0

GRAVITY_BOTTOM: 8

将控件显示在其容器的底部,而不更改其大小

Since

1.1.0

GRAVITY_CENTER_HORIZONTAL: 16

将控件显示在其容器的水平居中,而不更改其大小

Since

1.1.0

GRAVITY_CENTER_VERTICAL: 32

将控件显示在其容器的垂直居中,而不更改其大小

Since

1.1.0

GRAVITY_CENTER: 48

将控件显示在其容器的水平居中和垂直居中,而不更改其大小

Since

1.1.0

GRAVITY_BOTTOM_HCENTER: 24

将控件显示在其容器的底部和水平居中,而不更改其大小

Since

1.1.0

GRAVITY_FILL_HORIZONTAL: 5

Grow the horizontal size of the object if needed so it completely fills its container.

Since

1.2.0

GRAVITY_FILL_VERTICAL: 10

Grow the vertical size of the object if needed so it completely fills its container.

Since

1.2.0