Compartir a través de


LayerDrawable.SetPaddingRelative(Int32, Int32, Int32, Int32) Method

Definition

Sets the relative padding.

[Android.Runtime.Register("setPaddingRelative", "(IIII)V", "GetSetPaddingRelative_IIIIHandler", ApiSince=23)]
public virtual void SetPaddingRelative (int start, int top, int end, int bottom);
[<Android.Runtime.Register("setPaddingRelative", "(IIII)V", "GetSetPaddingRelative_IIIIHandler", ApiSince=23)>]
abstract member SetPaddingRelative : int * int * int * int -> unit
override this.SetPaddingRelative : int * int * int * int -> unit

Parameters

start
Int32

the start padding in pixels, or -1 to use computed padding

top
Int32

the top padding in pixels, or -1 to use computed padding

end
Int32

the end padding in pixels, or -1 to use computed padding

bottom
Int32

the bottom padding in pixels, or -1 to use computed padding

Attributes

Remarks

Sets the relative padding.

If padding in a dimension is specified as -1, the resolved padding will use the value computed according to the padding mode (see #setPaddingMode(int)).

Calling this method clears any absolute padding values previously set using #setPadding(int, int, int, int).

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