title: Android load drawable programmatically and resize it
body: <p>How can I load drawable from InputStream (assets, file system) and  resize it dynamically based on the screen resolution hdpi, mdpi or ldpi? </p>
  
  <p>The original image is in hdpi, I only need resizing for mdpi and ldpi.</p>
  
  <p>How does Android do dynamic resizing of the drawables in /res?</p>