[英]How to set full screen in Android Vision API?
In CameraSourcePreview.java find this if condition and change it to: 在CameraSourcePreview.java中找到此条件,并将其更改为:
if (childHeight < layoutHeight) {
childHeight = layoutHeight;
childWidth = (int)(((float) layoutHeight / (float) height) * width);
}
If you want to match parent for width and height you can use 如果要匹配父项的宽度和高度,可以使用
childHeight = layoutHeight; childWidth = layoutWidth;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.