code: public int getHeight() {
          mParentView.measure(View.MeasureSpec.makeMeasureSpec(mParentView.getWidth(), View.MeasureSpec.EXACTLY),
                  View.MeasureSpec.makeMeasureSpec(mParentView.getHeight(), View.MeasureSpec.AT_MOST));
          return mParentView.getMeasuredHeight();
      }
docs: Calculates the height of the SnackBar
  
  @return the height of the SnackBar