title: How do I create an ImageView in java code, within an existing Layout?
body: <p>I'm looking for an easy way for the user to see how many drinks they've had for a BAC calculator.</p>
  
  <p>Picture of the app:</p>
  
  <p><img src="https://i.stack.imgur.com/JN13ym.jpg" alt="PICTURE OF THE APP"></p>
  
  <p>On button press, I would like an image to be added to the screen, directly under the spinner and with left alignment. When I press the button again, I want another image to be added to the screen.</p>
  
  <p>So if I pressed the add beer button, a drawable of a beer would appear below the spinner. If I pressed the add beer button again, I want there to be TWO drawables of beers under the spinner, preferably with them being added from the right.</p>
  
  <p>(Also, having them reach their width limit, wrapping around, and starting again on the left, but below a full line, would be AWESOME)</p>
  
  <p>I can't figure out how to do this. I assume adding a ImageView in code to a relative layout (because it needs to be positioned to the right) would be the best route, but if it's possible in xml I'd be more than happy to use that. Any help?</p>