Take advantage of DisplayUtils.getDisplayPixelSize().