Android Guides | Samples

Android.Util.DisplayMetricsDensity Enumeration

Enumerates values returned by several types.

Syntax

public enum DisplayMetricsDensity

Remarks

Members

Member NameDescription
D400
D560
DefaultThe reference density used throughout the system.
HighStandard quantized DPI for high-density screens.
LowStandard quantized DPI for low-density screens.
MediumStandard quantized DPI for medium-density screens.
Tv

DisplayMetrics.DensityHighDrawable

This density was original introduced to correspond with a 720p TV screen: the density for 1080p televisions is DisplayMetrics.DensityXhigh, and the value here provides the same UI size for a TV running at 720p. It has also found use in 7" tablets, when these devices have 1280x720 displays.

XhighStandard quantized DPI for extra-high-density screens.
XxhighStandard quantized DPI for extra-extra-high-density screens. Applications should not generally worry about this density; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases.
XxxhighStandard quantized DPI for extra-extra-extra-high-density screens. Applications should not generally worry about this density; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases. A typical use of this density would be 4K television screens -- 3840x2160, which is 2x a traditional HD 1920x1080 screen which runs at DENSITY_XHIGH.

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Util.DisplayMetricsDensity are listed below.

See Also: Enum

Public Fields

D400DisplayMetricsDensity.
D560DisplayMetricsDensity.
DefaultDisplayMetricsDensity. The reference density used throughout the system.
HighDisplayMetricsDensity. Standard quantized DPI for high-density screens.
LowDisplayMetricsDensity. Standard quantized DPI for low-density screens.
MediumDisplayMetricsDensity. Standard quantized DPI for medium-density screens.
TvDisplayMetricsDensity.

DisplayMetrics.DensityHighDrawable

This density was original introduced to correspond with a 720p TV screen: the density for 1080p televisions is DisplayMetrics.DensityXhigh, and the value here provides the same UI size for a TV running at 720p. It has also found use in 7" tablets, when these devices have 1280x720 displays.

XhighDisplayMetricsDensity. Standard quantized DPI for extra-high-density screens.
XxhighDisplayMetricsDensity. Standard quantized DPI for extra-extra-high-density screens. Applications should not generally worry about this density; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases.
XxxhighDisplayMetricsDensity. Standard quantized DPI for extra-extra-extra-high-density screens. Applications should not generally worry about this density; relying on XHIGH graphics being scaled up to it should be sufficient for almost all cases. A typical use of this density would be 4K television screens -- 3840x2160, which is 2x a traditional HD 1920x1080 screen which runs at DENSITY_XHIGH.