@Geralt_Encore
if you still want it to be fill screen then you should make some changes in onLayout() method of CameraView
comment the below code
if (width * previewHeight > height * previewWidth) {
final int scaledChildWidth=
previewWidth * height / previewHeight;
child.layout((width - scaledChildWidth) / 2, 0,
(width + scaledChildWidth) / 2, height);
}
else {
final int scaledChildHeight=
previewHeight * width / previewWidth;
child.layout(0, (height - scaledChildHeight) / 2, width,
(height + scaledChildHeight) / 2);
}
and add this line instead of above code
child.layout(l,t,r,b);
and you are done. now you will get full screen preview
it will work but i haven't tested it with orientation changes because i Want my Camera Activity to be in portrait mode only.
hope this will help you