Compose CameraXViewfinder aspect ratio

10 views
Skip to first unread message

Nathan AUDVARD

unread,
11:48 AM (9 hours ago) 11:48 AM
to Android CameraX Discussion Group
Hi,

Is there an easy way to have a CameraXViewfinder that match (and fit) the surface requested ?

I tried to divide surface's width by height and using it as aspect ratio modifier, but it only works in landscape. Since CameraXViewfinder has a fillMaxSize, setting width modifier with IntrinsicSize doesn't work either.

Thanks.
Reply all
Reply to author
Forward
0 new messages