@@ -0,0 +1,2310 @@
+package com.amalgam.view;%0A%0Aimport android.annotation.SuppressLint;%0Aimport android.app.Activity;%0Aimport android.content.Context;%0Aimport android.graphics.Point;%0Aimport android.os.Build;%0Aimport android.view.Display;%0Aimport android.view.WindowManager;%0A%0Apublic final class DisplayUtils %7B%0A    private DisplayUtils() %7B%7D%0A%0A    @SuppressLint(%22NewApi%22)%0A    public static final Point getDisplaySize(WindowManager manager) %7B%0A        Display display = manager.getDefaultDisplay();%0A        if (Build.VERSION.SDK_INT %3E Build.VERSION_CODES.HONEYCOMB_MR2) %7B%0A            Point size = new Point();%0A            display.getSize(size);%0A            return size;%0A        %7D else %7B%0A            Point size = new Point();%0A            size.x = getDisplayWidth(manager);%0A            size.y = getDisplayHeight(manager);%0A            return size;%0A        %7D%0A    %7D%0A%0A    @SuppressLint(%22NewApi%22)%0A    @SuppressWarnings(%22deprecation%22)%0A    public static final int getDisplayWidth(WindowManager manager) %7B%0A        Display display = manager.getDefaultDisplay();%0A        if (Build.VERSION.SDK_INT %3E Build.VERSION_CODES.HONEYCOMB_MR2) %7B%0A            Point size = new Point();%0A            display.getSize(size);%0A            return size.x;%0A        %7D else %7B%0A            return display.getWidth();%0A        %7D%0A%0A    %7D%0A%0A    public static final int getDisplayWidth(Activity activity) %7B%0A        return getDisplayWidth(activity.getWindowManager());%0A    %7D%0A%0A    public static final int getDisplayWidth(Context context) %7B%0A        return getDisplayWidth((WindowManager) context.getSystemService(Context.WINDOW_SERVICE));%0A    %7D%0A%0A    @SuppressLint(%22NewApi%22)%0A    @SuppressWarnings(%22deprecation%22)%0A    public static final int getDisplayHeight(WindowManager manager) %7B%0A        Display display = manager.getDefaultDisplay();%0A        if (Build.VERSION.SDK_INT %3E Build.VERSION_CODES.HONEYCOMB_MR2) %7B%0A            Point size = new Point();%0A            display.getSize(size);%0A            return size.y;%0A        %7D else %7B%0A            return display.getWidth();%0A        %7D%0A%0A    %7D%0A%0A    public static final int getDisplayHeight(Activity activity) %7B%0A        return getDisplayHeight(activity.getWindowManager());%0A    %7D%0A%0A    public static final int getDisplayHeight(Context context) %7B%0A        return getDisplayHeight((WindowManager) context.getSystemService(Context.WINDOW_SERVICE));%0A    %7D%0A%7D%0A

Add utility for display