SystemUiHelper gist from Chris Banes and Roman Nurik as an Android Library. https://gist.github.com/chrisbanes/73de18faffca571f7292 https://chris.banes.me/2014/08/29/systemuihelper/
Step 1: Add jitpack to your build.gradle at the end of repositories:
repositories {
// ...
maven { url "https://jitpack.io" }
}
Step 2: Add the dependency
dependencies {
compile 'com.github.intrications:SystemUiHelper:1.1'
}