Camera Preview Size

Eliseo Gamba 21 Reputation points


I follow this tutorial

In the picture in tutorial camara is in fullscreen but in my phone (Xiaomi Mi A2) just use 80% of the screen and i want picture cover all screen.

Anyone know how set fullscreen for camera?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,818 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JessieZhang-MSFT 7,516 Reputation points


    Welcome to our Microsoft Q&A platform!

    The camera sensor is 4:3. The screen is usually 16:9. The sample code choose to show the entire camera preview, so part of the screen is not filled. You need to stretch to fill the whole screen, however in that case the images captured include areas not shown in the preview.

    If we really want to do this, we can try to change the android native code in android platform.

    please pay attention to class CameraFragment.cs in sample CustomRenderers/View/.

    For more details, you can refer to the following threads: .

    Best Regards,

    Jessie Zhang

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments