Android Guides | Samples

Android.Graphics.Drawables.NinePatchDrawable.SetTargetDensity Method

Set the density at which this drawable will be rendered.

Syntax

[Android.Runtime.Register("setTargetDensity", "(I)V", "GetSetTargetDensity_IHandler")]
public virtual Void SetTargetDensity (Int32 density)

See Also

Parameters

density
The density scale for this drawable.

Remarks

Set the density 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