code: private int getStatusBarHeight() {
          int result = 0;
          int resourceId = mHoldingActivity.getResources()
              .getIdentifier("status_bar_height", "dimen", "android");
          if (resourceId > 0) {
              result = mHoldingActivity.getResources().getDimensionPixelSize(resourceId);
          }
          return result;
      }
docs: retrieve status bar height in px
  
  @return status bar height in px