Share via


WindowMetrics.Density Property

Definition

Returns the density of the area associated with this window or android.annotation.UiContext, which uses the same units as android.util.DisplayMetrics#density.

public float Density { [Android.Runtime.Register("getDensity", "()F", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getDensity", "()F", "", ApiSince=34)>]
member this.Density : single

Property Value

Attributes

Remarks

Returns the density of the area associated with this window or android.annotation.UiContext, which uses the same units as android.util.DisplayMetrics#density.

Java documentation for android.view.WindowMetrics.getDensity().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to