/**
  * This method returns the drawing rect for the view which is different from the regular drawing
  * rect, since we layout all children in the {@link NotificationStackScrollLayout} at position 0
  * and usually the translation is neglected. The standard implementation doesn't account for
  * translation.
  *
  * @param outRect The (scrolled) drawing bounds of the view.
  */
 @Override
 public void getDrawingRect(Rect outRect) {
   super.getDrawingRect(outRect);
   float translationX = ((ViewGroup) mParent).getTranslationX();
   float translationY = ((ViewGroup) mParent).getTranslationY();
   outRect.left += translationX;
   outRect.right += translationX;
   outRect.top += translationY;
   outRect.bottom += translationY;
 }