语言

LayerDrawable.SetLayerInsetRelative(Int32, Int32, Int32, Int32, Int32) 方法

定义

指定指定索引处可绘制的相对内集(以像素为单位)。

[Android.Runtime.Register("setLayerInsetRelative", "(IIIII)V", "GetSetLayerInsetRelative_IIIIIHandler", ApiSince=23)]
public virtual void SetLayerInsetRelative(int index, int s, int t, int e, int b);
[<Android.Runtime.Register("setLayerInsetRelative", "(IIIII)V", "GetSetLayerInsetRelative_IIIIIHandler", ApiSince=23)>]
abstract member SetLayerInsetRelative : int * int * int * int * int -> unit
override this.SetLayerInsetRelative : int * int * int * int * int -> unit

参数

index
Int32

要调整的层的索引

s
Int32

从开始边界内传入的像素数

t
Int32

要从顶部边界内嵌入的像素数

e
Int32

要从结束边界内嵌入的像素数

b
Int32

要从底部边界内嵌入的像素数

特性

注解

指定指定索引处可绘制的相对内集(以像素为单位)。

Java文档android.graphics.drawable.LayerDrawable.setLayerInsetRelative(int, int, int, int, int)。

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

适用于