DisplayMetrics.DensityDpi 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.
The screen density expressed as dots-per-inch.
[Android.Runtime.Register("densityDpi")]
public Android.Util.DisplayMetricsDensity DensityDpi { get; set; }
[<Android.Runtime.Register("densityDpi")>]
member this.DensityDpi : Android.Util.DisplayMetricsDensity with get, set
Property Value
- Attributes
Remarks
The screen density expressed as dots-per-inch. May be any one of the DENSITY_
constants defined above.
New constants are frequently added, and constants added on new Android versions may be backported to previous Android versions, so applications should not strongly rely on density matching one of the enum constants.
Java documentation for android.util.DisplayMetrics.densityDpi
.
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.