title: scale camera preview to fit half the screen
body: <p>I am trying to achieve a half screen camera preview similar to the one attached in the screen.</p>
  
  <p>I tried nearly all camera preview examples, also tried my own but it either gets the SurfaceView resized to wrap preview sizes (so never half screen size) or it actually fits the half screen but the preview is stretched.</p>
  
  <p><img src="https://i.stack.imgur.com/A8Dmw.jpg" alt="enter image description here"></p>