But, be careful of timing be released from the Frameworks.
How to Request that the visibility of the NavigationBar
To request that the visibility of the NavigationBar be changed, you can use View#setSystemUiVisibility().Android Developer: View#setSystemUiVisibility()
- register Listener to View - View#setOnSystemUiVisibilityChangeListener
- set Visivility mode - View#setSystemUiVisibility
Visivility mode:
- View.SYSTEM_UI_FLAG_LOW_PROFILE - navigation icons may dim
- View.SYSTEM_UI_FLAG_HIDE_NAVIGATION - hide navigation icons
Example:
{ : View view; view = findViewById(R.id.linerLayout); view.setOnSystemUiVisibilityChangeListener(mOnSystemUiVisibilityChangeListener); view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION); : } private OnSystemUiVisibilityChangeListener mOnSystemUiVisibilityChangeListener = new OnSystemUiVisibilityChangeListener(){ @Override public void onSystemUiVisibilityChange(int visibility) { Log.e("","call onSystemUiVisibilityChange = " + visibility); } };
View.SYSTEM_UI_FLAG_LOW_PROFILE
NavigationBar display area of the intact, but appear dimmed.
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
Hide the display area of the NavigationBar becomes completely, spread the display area of the application.
Timing be released from the Frameworks
NavigationBar display specifiers will be released in the following use cases.- TouchDown on Screen
- Show PowerDown Dialog(GlobalActions)
- An application becomes active/inactive
Can tablet widgets be called in phone mode ,the widget that shows the battery,clock,wifi,like the ones you show here http://baroqueworksdev.blogspot.com/2012/02/launch-tablet-mode-android-403-on.html
ReplyDelete