LayerDrawable.SetLayerInsetRelative(Int32, Int32, Int32, Int32, Int32) Method

Definition

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

[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

Parameters

index
Int32

the index of the layer to adjust

s
Int32

number of pixels to inset from the start bound

t
Int32

number of pixels to inset from the top bound

e
Int32

number of pixels to inset from the end bound

b
Int32

number of pixels to inset from the bottom bound

Attributes

Remarks

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

Java documentation for android.graphics.drawable.LayerDrawable.setLayerInsetRelative(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