View.SetPadding(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置填充。
[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual void SetPadding (int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")>]
abstract member SetPadding : int * int * int * int -> unit
override this.SetPadding : int * int * int * int -> unit
参数
- left
- Int32
左侧填充(以像素为单位)
- top
- Int32
顶部填充(以像素为单位)
- right
- Int32
右填充(以像素为单位)
- bottom
- Int32
底部填充(以像素为单位)
- 属性
注解
设置填充。 视图可能会增加显示滚动条所需的空间,具体取决于滚动条的样式和可见性。 因此,从 #getPaddingLeft
、 #getPaddingTop
#getPaddingRight
和 #getPaddingBottom
返回的值可能与此调用中设置的值不同。
的 android.view.View.setPadding(int, int, int, int)
Java 文档。
此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。