Skip to content

Instantly share code, notes, and snippets.

@explodes
explodes / ScreenUtils.java
Created April 22, 2016 19:35
Detecting the amount the status bar and navigation bars affect the screen area on Android
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.support.annotation.NonNull;
import android.view.Display;
import android.view.WindowManager;
import java.lang.reflect.InvocationTargetException;