code: public void setForegroundGravity(int foregroundGravity) {
          if (mForegroundGravity != foregroundGravity) {
              if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) {
                  foregroundGravity |= Gravity.START;
              }
  
              if ((foregroundGravity & Gravity.VERTICAL_GRAVITY_MASK) == 0) {
                  foregroundGravity |= Gravity.TOP;
              }
  
              mForegroundGravity = foregroundGravity;
  
  
              if (mForegroundGravity == Gravity.FILL && mForeground != null) {
                  Rect padding = new Rect();
                  mForeground.getPadding(padding);
              }
  
              requestLayout();
          }
      }
docs: Describes how the foreground is positioned. Defaults to START and TOP.
  
  @param foregroundGravity See {@link Gravity}
  
  @see #getForegroundGravity()