Android Guides | Samples

Android.Graphics.Drawables.ShapeDrawable.SetPadding Method

Sets padding for the shape.

Syntax

[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual Void SetPadding (Int32 left, Int32 top, Int32 right, Int32 bottom)

Parameters

left
padding for the left side (in pixels)
top
padding for the top (in pixels)
right
padding for the right side (in pixels)
bottom
padding for the bottom (in pixels)

Remarks

Sets padding for the shape.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1