Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0

Index

On this page

KMManager.getWindowDensity()


Summary

The getWindowDensity() method returns the density of the window.

Syntax

KMManager.getWindowDensity(Context context)
context
The context.

Returns

Returns the density

Description

Use this method to get the density of the window. This is a scaling factor for the Density Independent Pixel (DIP) unit.

Examples

Example: Using getWindowDensity()

The following code illustrates the use of getWindowDensity():

    float density = KMManager.getWindowDensity(context);

See Also