Scale the preview, maintaining the source aspect ratio, so it is entirely contained within the fragment layout. The background area not covered by the preview stream will be black or the background of the fragment layout.
Scale the preview, maintaining the source aspect ratio, so it fills the entire fragment layout. This may cause the preview to be cropped if the camera preview aspect ratio does not match that of its container fragment layout.