Back to project page YouTubePlayerActivity.
The source code is released under:
MIT License
If you think the Android project YouTubePlayerActivity listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.thefinestartist.ytpa.utils; /* w w w . j av a2s .c o m*/ import android.app.Activity; import android.os.Build; import android.view.View; import android.view.WindowManager; /** * Created by TheFinestArtist on 2/17/15. */ public class StatusBarUtil { public static void hide(Activity activity) { if (Build.VERSION.SDK_INT < 16) { activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } else { View decorView = activity.getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); } } }