LayerDrawable.SetLayerInset(Int32, Int32, Int32, Int32, Int32) 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);
abstract member SetLayerInset : int * int * int * int * int -> unit
override this.SetLayerInset : int * int * int * int * int -> unit

Parameters

index
Int32 Int32

the index of the drawable to adjust

l
Int32 Int32

number of pixels to add to the left bound

t
Int32 Int32

number of pixels to add to the top bound

r
Int32 Int32

number of pixels to subtract from the right bound

b
Int32 Int32

number of pixels to subtract from the bottom bound

Remarks

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