语言

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

定义

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

[Android.Runtime.Register("setLayerInset", "(IIIII)V", "GetSetLayerInset_IIIIIHandler")]
public virtual void SetLayerInset(int index, int l, int t, int r, int b);
[<Android.Runtime.Register("setLayerInset", "(IIIII)V", "GetSetLayerInset_IIIIIHandler")>]
abstract member SetLayerInset : int * int * int * int * int -> unit
override this.SetLayerInset : int * int * int * int * int -> unit

参数

index
Int32

要调整的可绘制对象的索引

l
Int32

要添加到左侧边界的像素数

t
Int32

要添加到顶部边界的像素数

r
Int32

要从右边界中减去的像素数

b
Int32

要从底部边界中减去的像素数

特性

注解

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

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

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

适用于