Java Code Examples for android.widget.FrameLayout#setSystemUiVisibility()
The following examples show how to use
android.widget.FrameLayout#setSystemUiVisibility() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CameraActivity.java From KrGallery with GNU General Public License v2.0 | 6 votes |
@SuppressWarnings("unchecked") @Override public View createView(Context context) { actionBar.setVisibility(View.GONE); fragmentView = new FrameLayout(context) { @Override public boolean onTouchEvent(MotionEvent event) { if (cameraOpened && processTouchEvent(event)) { return true; } else { return super.onTouchEvent(event); } } }; FrameLayout frameLayout = (FrameLayout) fragmentView; frameLayout.setBackgroundColor(0xff000000); frameLayout.setLayoutParams(LayoutHelper.createFrame(LayoutHelper.MATCH_PARENT, LayoutHelper.MATCH_PARENT)); if (Build.VERSION.SDK_INT >= 21) { frameLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_FULLSCREEN); } initView(context); return fragmentView; }
Example 2
Source File: MediaRouteChooserDialogFactory.java From delion with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 3
Source File: MediaRouteControllerDialogFactory.java From delion with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 4
Source File: BaseMediaRouteDialogManager.java From delion with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (!mWasFullscreenBeforeShowing) return; FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. boolean isStillFullscreen = (decor.getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == 0; if (!isStillFullscreen) return; decor.setSystemUiVisibility(mSystemVisibilityToRestore); }
Example 5
Source File: MediaRouteChooserDialogFactory.java From AndroidChromium with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 6
Source File: MediaRouteControllerDialogFactory.java From AndroidChromium with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 7
Source File: BaseMediaRouteDialogManager.java From AndroidChromium with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (!mWasFullscreenBeforeShowing) return; FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. boolean isStillFullscreen = (decor.getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == 0; if (!isStillFullscreen) return; decor.setSystemUiVisibility(mSystemVisibilityToRestore); }
Example 8
Source File: MediaRouteChooserDialogFactory.java From 365browser with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 9
Source File: MediaRouteControllerDialogFactory.java From 365browser with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (mRestoreSystemVisibility) { FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. int systemVisibility = decor.getSystemUiVisibility(); if ((systemVisibility & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) != 0) { decor.setSystemUiVisibility(mSystemVisibility); } } }
Example 10
Source File: BaseMediaRouteDialogManager.java From 365browser with Apache License 2.0 | 5 votes |
void restoreSystemVisibility(Activity activity) { if (!mWasFullscreenBeforeShowing) return; FrameLayout decor = (FrameLayout) activity.getWindow().getDecorView(); // In some cases we come out of fullscreen before closing this dialog. In these // cases we don't want to restore the system UI visibility state. boolean isStillFullscreen = (decor.getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) == 0; if (!isStillFullscreen) return; decor.setSystemUiVisibility(mSystemVisibilityToRestore); }