am 1e609ac4: am 4e6c5408: am c8b93fd9: Merge "Doc update: clarify version of flags." into klp-docs

* commit '1e609ac45df13fed93df81e805ea6d6485da3aa0':
  Doc update: clarify version of flags.
This commit is contained in:
Katie McCormick
2013-12-16 18:33:42 +00:00
committed by Android Git Automerger

View File

@ -63,6 +63,9 @@ user experience. </p>
the navigation bar and the status bar:</p> the navigation bar and the status bar:</p>
<pre>View decorView = getWindow().getDecorView(); <pre>View decorView = getWindow().getDecorView();
// Hide both the navigation bar and the status bar. // Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN; | View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);</pre> decorView.setSystemUiVisibility(uiOptions);</pre>