@@ -0,0 +1,833 @@
+package example.andrewli.com.puzzle.util;%0A%0Aimport android.content.Context;%0Aimport android.util.DisplayMetrics;%0Aimport android.view.Display;%0Aimport android.view.WindowManager;%0A%0Apublic class ScreenUtil %7B%0A%0A    public static DisplayMetrics getScreenSize(Context context) %7B%0A        DisplayMetrics metrics = new DisplayMetrics();%0A        WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);%0A        Display display = wm.getDefaultDisplay();%0A        display.getMetrics(metrics);%0A        return metrics;%0A    %7D%0A%0A    public static float getDeviceDensity(Context context) %7B%0A        DisplayMetrics metrics = new DisplayMetrics();%0A        WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);%0A        wm.getDefaultDisplay().getMetrics(metrics);%0A        return metrics.density;%0A    %7D%0A%7D%0A

add screenUtil