Example usage for android.view Display getMode

List of usage examples for android.view Display getMode

Introduction

In this page you can find the example usage for android.view Display getMode.

Prototype

public Mode getMode() 

Source Link

Document

Returns the active mode of the display.

Usage

From source file:Main.java

@TargetApi(23)
private static void getDisplaySizeV23(Display display, Point outSize) {
    Display.Mode mode = display.getMode();
    outSize.x = mode.getPhysicalWidth();
    outSize.y = mode.getPhysicalHeight();
}