mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
806 B
806 B
| title |
|---|
| KMManager.getNavigationBarHeight() |
Summary
The getNavigationBarHeight() method returns the height of the navigation bar.
Syntax
KMManager.getNavigationBarHeight(Context context)
Parameters
context- The context.
Returns
Returns the height of the navigation bar in pixels.
Description
Use this method to get the height of the navigation bar. The keyboard offsets must account for this height below the keyboard.
Examples
Example: Using getNavigationBarHeight()
The following script illustrate the use of getNavigationBarHeight():
int navigationHeight = KMManager.getNavigationBarHeight(this);