Why is my camera preview not respecting the layout?
I'm creating a SurfaceView for my camera preview and attempting to have it occupy a rectangle that's smaller than the entire screen, but it's ignoring my layout command.
I assume I'm doing something wrong, but can't find an example of someone setting the preview into a smaller container.
All advice (or pointers to examples) appreciated.
There's a container that performs a special layout procedure depending on a given aspect ratio. I think you can adapt this solution to your needs.