Android Open Source - YouTubePlayerActivity Status Bar Util






From Project

Back to project page YouTubePlayerActivity.

License

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.

Java Source Code

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);
        }
    }
}




Java Source Code List

com.thefinestartist.ytpa.YouTubePlayerActivity.java
com.thefinestartist.ytpa.enums.Orientation.java
com.thefinestartist.ytpa.sample.ApplicationTest.java
com.thefinestartist.ytpa.sample.MainActivity.java
com.thefinestartist.ytpa.utils.AudioUtil.java
com.thefinestartist.ytpa.utils.StatusBarUtil.java
com.thefinestartist.ytpa.utils.YoutubeUrlParser.java
com.thefinestartist.ytpa.utils.YoutubeUtil.java