Skip to content

Instantly share code, notes, and snippets.

@explodes
explodes / ScreenUtils.java
Created Apr 22, 2016
Detecting the amount the status bar and navigation bars affect the screen area on Android
View ScreenUtils.java
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;