CameraX/Camera2 API + PreviewView does not show the same field of view as equivalent zoom in default Camera App
14:38 26 Jan 2026

I can't seem to figure out why utilizing a the Camera2 or CameraX API (backend) with a PreviewView element (frontend) as a viewfinder for the camera doesn't seem to show the same field of view as the default Camera application.

Device: Pixel 7
OS: Android 16

enter image description here
![My application]

enter image description here

![Camera application]


Describe what you are trying to do
Trying to create a camera viewfinder with the same field of view as the default camera app in a toy application.

Explain what you tried
I tried utilizing both Camera2 API and CameraX API, as well as playing with zoom levels to see if they differed from api-values vs shown values in the application. No luck.

Also tried playing with some different attributes on PreviewView (padding, scaletype). No luck.

Played with target-aspect ratio (set to 4:3, same as default camera), resolutions (set to max resolution). No luck.

I also know that it is NOT switching to the wide-angle lens (there are 2 back cameras on this phone) through some trial & error testing covering up the wide-angle lens in both cases.

Say what you expected
I expected to see that one or all of these changes would allow the camera API to display the full field of view as the viewfinder in the default camera application.

Say what happened instead
The result image from the viewfinder is instead clipped around the edges or zoomed in or something. For example, look at the edges where the file cabinet is in the picture on the right, the fan on the table, or the backback at the bottom of the image. I suspected it was:

  • either in how it is grabbing the image via the API or...

  • how it is being displayed in the PreviewView in activity_main.xml.

android android-fragments android-camera android-camera2 android-camerax