Java tutorial
//package com.java2s; //License from project: Open Source License import android.annotation.TargetApi; import android.os.Build; import android.view.Window; import android.view.WindowManager; public class Main { @TargetApi(Build.VERSION_CODES.KITKAT) private static void setTranslucentStatusBarKiKat(Window window) { window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); } }