Udostępnij za pośrednictwem


RemoteViews.SetViewPadding(Int32, Int32, Int32, Int32, Int32) Method

Definition

Equivalent to calling android.view.View#setPadding(int, int, int, int).

[Android.Runtime.Register("setViewPadding", "(IIIII)V", "GetSetViewPadding_IIIIIHandler")]
public virtual void SetViewPadding (int viewId, int left, int top, int right, int bottom);
[<Android.Runtime.Register("setViewPadding", "(IIIII)V", "GetSetViewPadding_IIIIIHandler")>]
abstract member SetViewPadding : int * int * int * int * int -> unit
override this.SetViewPadding : int * int * int * int * int -> unit

Parameters

viewId
Int32

The id of the view to change

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

Java documentation for android.widget.RemoteViews.setViewPadding(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