title: Android make ShapeDrawable match_parent
body: <p>I am trying to create a colored Circle and assign it to an ImageView for my GridView.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>ImageView ivColor;
  
  ivColor = new ImageView(MainActivity.this);
  ivColor.setLayoutParams(new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));         
  
  ShapeDrawable shape = new ShapeDrawable(new OvalShape());
  shape.getPaint().setColor(color[i]);
  shape.setIntrinsicWidth(128);
  shape.setIntrinsicHeight(128);
  
  ivColor.setImageDrawable(shape);
  </code></pre>
  
  <p>For now, i am setting the ShapeDrawable height and width as 128px manually. Is there a way to assign the ShapeDrawable a value of "match_parent" just like i can do with the ImageView?</p>