Java tutorial
//package com.java2s; import android.app.Activity; import android.os.Build; import android.view.Window; import android.view.WindowManager; public class Main { private static void setTranslucentStatus(Activity context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Window win = context.getWindow(); WindowManager.LayoutParams winParams = win.getAttributes(); final int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS; winParams.flags |= bits; win.setAttributes(winParams); } } }