public int maxHeightForWidgetPreview(int spanY) {
   return Math.min(mPreviewBitmapHeight, mWidgetSpacingLayout.estimateCellHeight(spanY));
 }
 public int maxWidthForWidgetPreview(int spanX) {
   return Math.min(mPreviewBitmapWidth, mWidgetSpacingLayout.estimateCellWidth(spanX));
 }