title: How setbounds of drawable works in Android?
body: <p>I am confused with setbounds method of drawable in Android. I know it is used with drawable and it set where drawable and how large it is. Briefly, it defines, bounding rectangle for drawable. But I am confused: does it set border or padding or its width or height?</p>
  
  <p>This is how we use setbounds</p>
  
  <pre><code>drawableInstance.setBounds(L,T,R,B);
  </code></pre>
  
  <h2>First scenario</h2>
  
  <p>So in above case, If I set 5,5,5,5 for L,T,R,B respectively, L,T,R,B of drawable will be always from its parent respectively? I mean will it be like setting hidden 5px border to every side?Besides, if image is not large enough to meets that border width to its parent, will image be bigger?</p>
  
  <h2>Second scenario</h2>
  
  <p>I set 5,5,100,100 for L,T,R,B respectively. What I am confusing is, it will starts drawing from away from parent 5px to the top and 5px to the left. That will be the start point. Then image with will be 100px because I set 100 for right. So it goes to the right 100px. Same to bottom with right.</p>
  
  <p>But I tested it. I think both is not as what I think. How does it work, especially in relation to each parameter of setBounds?</p>