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

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

属性

注解

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

适用于 . 的 android.graphics.drawable.LayerDrawable.setLayerInsetRelative(int, int, int, int, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于