Deprecate Change-Id: I9f1d25526299da9efef0e7440bff426a416a18d5
Deprecate
Change-Id: I9f1d25526299da9efef0e7440bff426a416a18d5
CameraView is deprecated. No more development will be taking place.
Use Jetpack CameraX instead.
This is not an official Google product.
CameraView aims to help Android developers easily integrate Camera features.
Requires API Level 9. The library uses Camera 1 API on API Level 9-20 and Camera2 on 21 and above.
<com.google.android.cameraview.CameraView android:id="@+id/camera" android:layout_width="match_parent" android:layout_height="wrap_content" android:keepScreenOn="true" android:adjustViewBounds="true" app:autoFocus="true" app:aspectRatio="4:3" app:facing="back" app:flash="auto"/>
@Override protected void onResume() { super.onResume(); mCameraView.start(); } @Override protected void onPause() { mCameraView.stop(); super.onPause(); }
You can see a complete usage in the demo app.
See CONTRIBUTING.md.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Deprecated
CameraView is deprecated. No more development will be taking place.
Use Jetpack CameraX instead.
CameraView
This is not an official Google product.
CameraView aims to help Android developers easily integrate Camera features.
Requires API Level 9. The library uses Camera 1 API on API Level 9-20 and Camera2 on 21 and above.
Features
Usage
You can see a complete usage in the demo app.
Contribution
See CONTRIBUTING.md.