View.SetLeftTopRightBottom(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为此视图分配大小和位置。
[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
相对于父位置的底部位置
- 特性
注解
为此视图分配大小和位置。
此方法仅用于动画,因为它仅对视图应用此位置和大小为临时视图,并且它可以随时由布局更改。
Java文档android.view.View.setLeftTopRightBottom(int, int, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。