title: custom wrap_content in ImageView
body: <p>I have a problem with ImageView on example 1. the width is fix-310dp and height is wrap_content. And when users load picture (e.g 1920x2560) in ImageView from their gallery it should be as an example 2. On which way to solve this problem?</p>
  
  <p><a href="https://i.stack.imgur.com/LE5GM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LE5GM.jpg" alt="image view example"></a></p>