LayerDrawable.SetLayerInset(Int32, Int32, Int32, Int32, Int32) Method

Definition

Specifies the insets in pixels for the drawable at the specified index.

[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

Parameters

index
Int32

the index of the drawable to adjust

l
Int32

number of pixels to add to the left bound

t
Int32

number of pixels to add to the top bound

r
Int32

number of pixels to subtract from the right bound

b
Int32

number of pixels to subtract from the bottom bound

Attributes

Remarks

Specifies the insets in pixels for the drawable at the specified index.

Java documentation for android.graphics.drawable.LayerDrawable.setLayerInset(int, int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to