title: set imagebutton height and width in code
body: <p>this is my code</p>
  
  <pre><code>ImageButton btnPlayVideo = (ImageButton) findViewById(R.id.btnPlayVideo);
  btnPlayVideo.setBackgroundResource(R.drawable.play_icon_grey);
  btnPlayVideo.setAdjustViewBounds(true);
  btnPlayVideo.setMaxHeight(10);
  btnPlayVideo.setMaxWidth(10);
  </code></pre>
  
  <p>and in my xml</p>
  
  <pre><code>&lt;ImageButton
  android:id="@+id/btnPlayVideo"
  android:layout_width="90dp"
  android:layout_height="90dp"
  android:background="@android:color/transparent"
  android:layout_span="2" /&gt;
  </code></pre>
  
  <p>but it seems the setmaxheight and layout_height and width doesn't even work. so how do i set the imagebutton's dimension?</p>