code: void setDimens(int width, int height) {
          mAreDimensOverridden = true;
          mDesiredWidth = width;
          mDesiredHeight = height;
          requestLayout();
      }
docs: if width and height of the view needs to be changed
  
  @param width new width that needs to be set
  @param height new height that needs to be set