語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於