Udostępnij za pośrednictwem


View.SetPadding(Int32, Int32, Int32, Int32) Method

Definition

Sets the padding.

[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual void SetPadding (int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")>]
abstract member SetPadding : int * int * int * int -> unit
override this.SetPadding : int * int * int * int -> unit

Parameters

left
Int32

the left padding in pixels

top
Int32

the top padding in pixels

right
Int32

the right padding in pixels

bottom
Int32

the bottom padding in pixels

Attributes

Remarks

Sets the padding. The view may add on the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from #getPaddingLeft, #getPaddingTop, #getPaddingRight and #getPaddingBottom may be different from the values set in this call.

Java documentation for android.view.View.setPadding(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