Android Guides | Samples

Android.Graphics.Drawables.NinePatchDrawable.SetTargetDensity Method

Set the density scale at which this drawable will be rendered.

Syntax

[Android.Runtime.Register("setTargetDensity", "(Landroid/util/DisplayMetrics;)V", "GetSetTargetDensity_Landroid_util_DisplayMetrics_Handler")]
public virtual Void SetTargetDensity (DisplayMetrics metrics)

See Also

Parameters

metrics
The DisplayMetrics indicating the density scale for this drawable.

Remarks

Set the density scale at which this drawable will be rendered.

[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 4