title: How to set drawable(with changed size) in button like android:drawableTop at Runtime
body: <p>I am fetching number of images and text related to it from server
  Now i want to set each image with text(at bottom) in LinearLayout</p>
  
  <p>I got the answer of second part of the question from <a href="https://stackoverflow.com/questions/4919703/how-to-set-property-androiddrawabletop-of-a-button-at-runtime">here</a></p>
  
  <p><code>button.setCompoundDrawables(left, top, right, bottom);</code></p>
  
  <p>But problem with this is I am getting images of different sizes and want to resize them</p>
  
  <p>I am succeded to resizing Button by using Layout Params but with</p>
  
  <p><code>setCompoundDrawable(left,top,right,bottom);</code> image doesnt get resized</p>
  
  <p>How can i achieve this??</p>