Android Guides | Samples

Android.Graphics.Drawables.ShapeDrawable.SetPadding Method

Sets padding for this shape, defined by a Rect object.

Syntax

[Android.Runtime.Register("setPadding", "(Landroid/graphics/Rect;)V", "GetSetPadding_Landroid_graphics_Rect_Handler")]
public virtual Void SetPadding (Rect padding)

Parameters

padding

Remarks

Sets padding for this shape, defined by a Rect object. Define the padding in the Rect object as: left, top, right, bottom.

[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