title: Adjust drawable size according to screen size
body: <p>I am displaying some TexViews on the screen. They contains text as well as a drawable image also . My question is the how can  I scale the drawable according to the screen resolution 
  below is my code currently running :</p>
  
  <pre><code>Drawable dr = getResources().getDrawable(R.drawable.image);
          Bitmap bitmap = ((BitmapDrawable) dr).getBitmap();
          Drawable d = new BitmapDrawable(this.getResources(),Bitmap.createScaledBitmap(bitmap, 35, 35, true));
          textView.setCompoundDrawablesWithIntrinsicBounds(d, null,null,null);
  </code></pre>
  
  <p>Here I used ratio 35 but when we run the application on bigger screen the images appear to be small .</p>
  
  <p>Any suggestion to scale image for different screen size?</p>