Java android.util DisplayMetrics fields, constructors, methods, implement or subclass

Example usage for Java android.util DisplayMetrics fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.util DisplayMetrics.

The text is from its open source code.

Field

intDENSITY_LOW
Standard quantized DPI for low-density screens.
intDENSITY_MEDIUM
Standard quantized DPI for medium-density screens.
intDENSITY_TV
This is a secondary density, added for some common screen configurations.
intDENSITY_HIGH
Standard quantized DPI for high-density screens.
intDENSITY_280
Intermediate density for screens that sit between #DENSITY_HIGH (240dpi) and #DENSITY_XHIGH (320dpi).
intDENSITY_XHIGH
Standard quantized DPI for extra-high-density screens.
intDENSITY_360
Intermediate density for screens that sit somewhere between #DENSITY_XHIGH (320 dpi) and #DENSITY_XXHIGH (480 dpi).
intDENSITY_400
Intermediate density for screens that sit somewhere between #DENSITY_XHIGH (320 dpi) and #DENSITY_XXHIGH (480 dpi).
intDENSITY_420
Intermediate density for screens that sit somewhere between #DENSITY_XHIGH (320 dpi) and #DENSITY_XXHIGH (480 dpi).
intDENSITY_XXHIGH
Standard quantized DPI for extra-extra-high-density screens.
intDENSITY_560
Intermediate density for screens that sit somewhere between #DENSITY_XXHIGH (480 dpi) and #DENSITY_XXXHIGH (640 dpi).
intDENSITY_XXXHIGH
Standard quantized DPI for extra-extra-extra-high-density screens.
intDENSITY_DEFAULT
The reference density used throughout the system.
intDENSITY_DEVICE_STABLE
The device's stable density.
intwidthPixels
The absolute width of the available display size in pixels.
intheightPixels
The absolute height of the available display size in pixels.

Constructor

Method

ClassgetClass()
Returns the runtime class of this Object .
voidsetTo(DisplayMetrics o)
voidsetToDefaults()