public static int calcScrimSize(int maxHeight){
  int minHeight=MetricsUtil.inPx(80);
  int idealHeight=maxHeight / 2;
  return idealHeight > minHeight ? idealHeight : minHeight;
}

public static int calcScrimSize ( int maxHeight ) { int minHeight = MetricsUtil . inPx ( 80 ) ; int idealHeight = maxHeight / 2 ; return idealHeight > minHeight ? idealHeight : minHeight ; }
calculates the ideal scrim height .
