Android Guides | Samples

Android.Graphics.Drawables.Drawable.GetPadding Method

Return in padding the insets suggested by this Drawable for placing content inside the drawable's bounds.

Syntax

[Android.Runtime.Register("getPadding", "(Landroid/graphics/Rect;)Z", "GetGetPadding_Landroid_graphics_Rect_Handler")]
public virtual Boolean GetPadding (Rect padding)

Parameters

padding

Remarks

Return in padding the insets suggested by this Drawable for placing content inside the drawable's bounds. Positive values move toward the center of the Drawable (set Rect.inset).

[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