View.SetLeftTopRightBottom(Int32, Int32, Int32, Int32) 方法

定义

为此视图分配大小和位置。

[Android.Runtime.Register("setLeftTopRightBottom", "(IIII)V", "", ApiSince=29)]
public void SetLeftTopRightBottom (int left, int top, int right, int bottom);
[<Android.Runtime.Register("setLeftTopRightBottom", "(IIII)V", "", ApiSince=29)>]
member this.SetLeftTopRightBottom : int * int * int * int -> unit

参数

left
Int32

相对于父级的左侧位置

top
Int32

相对于父级的顶部位置

right
Int32

相对于父级的正确位置

bottom
Int32

相对于父级的底部位置

属性

注解

为此视图分配大小和位置。

此方法仅在动画中使用,因为它仅对视图应用此位置和大小,并且布局可以随时更改回来。

android.view.View.setLeftTopRightBottom(int, int, int, int)Java 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

适用于