English | Site Directory

Android - An Open Handset Alliance Project

android.view
public class

android.view.Display

java.lang.Object
android.view.Display

Summary

Constants

      Value  
int  DEFAULT_DISPLAY  Specify the default Display   0x00000000 

Public Methods

        int  getDisplayId()
        int  getHeight()
        void  getMetrics(DisplayMetrics outMetrics)
Initialize a DisplayMetrics object from this display's data.
        int  getOrientation()
        int  getPixelFormat()
        float  getRefreshRate()
        int  getWidth()
Methods inherited from class java.lang.Object

Details

Constants

public static final int DEFAULT_DISPLAY

Specify the default Display
Constant Value: 0 (0x00000000)

Public Methods

public int getDisplayId()

Returns

  • index of this display.

public int getHeight()

Returns

  • height of this display in pixels.

public void getMetrics(DisplayMetrics outMetrics)

Initialize a DisplayMetrics object from this display's data.

public int getOrientation()

Returns

  • orientation of this display.

public int getPixelFormat()

Returns

  • pixel format of this display.

public float getRefreshRate()

Returns

  • refresh rate of this display in frames per second.

public int getWidth()

Returns

  • width of this display in pixels.
Build m5-rc15g - 14 May 2008 12:50