title: Android layout, resize by percentage and maintain proportion
body: <p>I have an image that I have created at a larger dimension than how it will most likely be displayed.  Let's say it's 200x200.  I'm testing on a device that is 800x480 in landscape mode.  My goal is to have this image resize to 1/4th the height of the current view, dock to the top right corner, and also maintain the aspect ratio.  This would mean when viewing at 800x480, my image would be in the top right corner displaying at 120x120.</p>
  
  <p>I thought the way to do this was to use a vertical LinearLayout with a weightSum and layout_weights among the elements (using empty elements with layout_weight for padding if necessary) and adjustViewBounds=true on the ImageView, but I'm not able to get the effect I'm going for.  Any ideas?</p>