public static int getDisplayHeight ( @ NonNull final Context context ) { Condition . INSTANCE . ensureNotNull ( context , "The context may not be null" ) ; return context . getResources ( ) . getDisplayMetrics ( ) . heightPixels ; }
Returns the height of the device s display .