WindowMetrics.Density Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.