Android.Appwidget.AppWidgetHostView.GetDefaultPaddingForWidget Method
As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting ICE_CREAM_SANDWICH and higher.

Syntax

[Android.Runtime.Register("getDefaultPaddingForWidget", "(Landroid/content/Context;Landroid/content/ComponentName;Landroid/graphics/Rect;)Landroid/graphics/Rect;", "")]
public static Android.Graphics.Rect GetDefaultPaddingForWidget (Android.Content.Context context, Android.Content.ComponentName component, Android.Graphics.Rect padding)

Parameters

context
the current context
component
the component name of the widget
padding
Rect in which to place the output, if null, a new Rect will be allocated and returned

Returns

Documentation for this section has not yet been entered.

Remarks

As of ICE_CREAM_SANDWICH we are automatically adding padding to widgets targeting ICE_CREAM_SANDWICH and higher. The new widget design guidelines strongly recommend that widget developers do not add extra padding to their widgets. This will help achieve consistency among widgets. Note: this method is only needed by developers of AppWidgetHosts. The method is provided in order for the AppWidgetHost to account for the automatic padding when computing the number of cells to allocate to a particular widget.

[Android Documentation]

Requirements

Namespace: Android.Appwidget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 15