Android.Util.DisplayMetrics Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
Density400DisplayMetricsDensity (400). Intermediate density for screens that sit somewhere between DisplayMetrics.DensityXhigh (320 dpi) and DisplayMetrics.DensityXxhigh (480 dpi).
const
Density560DisplayMetricsDensity (560). Intermediate density for screens that sit somewhere between DisplayMetrics.DensityXxhigh (480 dpi) and DisplayMetrics.DensityXxxhigh (640 dpi).
const
DensityDefaultDisplayMetricsDensity (160). The reference density used throughout the system.
const
DensityHighDisplayMetricsDensity (240). Standard quantized DPI for high-density screens.
const
DensityLowDisplayMetricsDensity (120). Standard quantized DPI for low-density screens.
const
DensityMediumDisplayMetricsDensity (160). Standard quantized DPI for medium-density screens.
const
DensityTvDisplayMetricsDensity (213). This is a secondary density, added for some common screen configurations.
const
DensityXhighDisplayMetricsDensity (320). Standard quantized DPI for extra-high-density screens.
const
DensityXxhighDisplayMetricsDensity (480). Standard quantized DPI for extra-extra-high-density screens.
const
DensityXxxhighDisplayMetricsDensity (640). Standard quantized DPI for extra-extra-extra-high-density screens.

Public Properties

Densityfloat. The logical density of the display.
DensityDpiDisplayMetricsDensity. The screen density expressed as dots-per-inch.
HeightPixelsint. The absolute height of the display in pixels.
ScaledDensityfloat. A scaling factor for fonts displayed on the display.
WidthPixelsint. The absolute width of the display in pixels.
Xdpifloat. The exact physical pixels per inch of the screen in the X dimension.
Ydpifloat. The exact physical pixels per inch of the screen in the Y dimension.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Equals(DisplayMetrics) : bool
Returns true if these display metrics equal the other display metrics.
SetTo(DisplayMetrics)
SetToDefaults()