Screen Layout
The navigation bar is always accessible to the user because Fire tablets do not have hardware-based keys for system functions. Therefore, make sure that the user interface for your app is not obscured by the navigation bar or status bar. For information about screen layout, see Screen Layout and Resolution. The return values from android.util.DisplayMetrics are the screen resolution, not the resolution of the region unobscured by toolbars. When querying DisplayMetrics to calculate the appropriate size for the user interface and graphics, you need to adjust the return values to compensate for any toolbars.Back Button
The default behavior of the Back button is sufficient for most apps, because it returns the user to the previous activity. However, you can modify the behavior of the Back button by overriding the Activity.onBackPressed() method in your Activity. Make sure that the custom behavior is consistent with user expectations for the Back button.Soft Key Bar Buttons (Fire OS 4 and earlier)
In Fire OS 4 and earlier, the soft key bar has the following buttons:- Home
- Back
- Overflow menu
- Search
- Favorites (first-generation and second-generation Kindle Fire tablets only)
When the user rotates the device from portrait to landscape, the soft key bar pivots to a vertical orientation, along the right edge of the screen. For more information, see Device Orientation.
Search Button (Fire OS 4 and earlier)
The Search button on the soft key bar has a default behavior of displaying the device-level search interface. Optionally, your app can provide a customized search experience by overriding the onSearchRequested() method in your Activity. For information about adding a custom search interface, including managing a SearchView from the action bar, see Creating a Search Interface in the Android documentation.Overflow Menu (Fire OS 4 and earlier)
You can use the overflow menu for additional commands that you want the user to access from the soft key bar. You should put the following types of commands on the overflow menu:- App settings.
- Tasks that do not fit the current user interface.
- Global actions for your app.
- Include no more than six items. The overflow menu does not scroll.
- Keep labels short because text strings do not wrap. The menu can expand up to 500px wide before text is truncated.
- Use title capitalization for all menu items.
You can show the overflow menu on the soft key bar if the targetSdkVersion is 13 or earlier. In your AndroidManifest.xml, specify the theme shown in the following example.
android.targetSdkVersion to 14 or later and apply a theme with NoTitleBar. If you do this, on some devices the user may not be able to access the overflow menu because the menu button is not visible.


