public final class

Display

extends Object
java.lang.Object
   ↳ com.neomades.graphics.Display

Class Overview

The device display.

Summary

Public Methods
static int getHeight()
Returns the screen height in pixels.
static int getHeightDP()
Returns the screen height in DP units.
static int getWidth()
Returns the screen width in pixels.
static int getWidthDP()
Returns the screen width in DP units.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static int getHeight ()

Returns the screen height in pixels.

Returns
  • the screen height in pixels

public static int getHeightDP ()

Returns the screen height in DP units.

Returns
  • the screen height in DP units

public static int getWidth ()

Returns the screen width in pixels.

Returns
  • the screen width in pixels

public static int getWidthDP ()

Returns the screen width in DP units.

Returns
  • the screen width in DP units