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

定义

设置相对填充。

[Android.Runtime.Register("setPaddingRelative", "(IIII)V", "GetSetPaddingRelative_IIIIHandler")]
public virtual void SetPaddingRelative (int start, int top, int end, int bottom);
[<Android.Runtime.Register("setPaddingRelative", "(IIII)V", "GetSetPaddingRelative_IIIIHandler")>]
abstract member SetPaddingRelative : int * int * int * int -> unit
override this.SetPaddingRelative : int * int * int * int -> unit

参数

start
Int32

开始填充(以像素为单位)

top
Int32

顶部填充(以像素为单位)

end
Int32

结束填充(以像素为单位)

bottom
Int32

底部填充(以像素为单位)

属性

注解

设置相对填充。 视图可能会增加显示滚动条所需的空间,具体取决于滚动条的样式和可见性。 因此,从 #getPaddingStart#getPaddingTop#getPaddingEnd#getPaddingBottom 返回的值可能与此调用中设置的值不同。

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

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

适用于