title: width and height of imageview in dynamic layout
body: <p>I'm using dynamic layout I want to set width and height of a <code>ImageView</code>. The code is below. How can I set the height and width of an <code>ImageView</code> in a given layout? Any help is highly appreciated.</p>
  
  <pre><code>    RelativeLayout layout = new RelativeLayout(mContext);
      TextView text1 = new TextView(mContext);
      text1.setText(Constants.vctrCategory.elementAt(counter).toString());
      LayoutParams params1 = new    LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT);
      params1.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
      text1.setLayoutParams(params1);
      text1.setTextSize(20);
      layout.addView(text1);
      ImageView image = new ImageView(mContext);
      image.setImageBitmap(bitmap);
      layout.addView(image);
      counter++;
      return layout;
  </code></pre>