|
1 |
| ---- |
| 1 | +<com.otaliastudios.cameraview.CameraView |
| 2 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 3 | + android:layout_width="wrap_content" |
| 4 | + android:layout_height="wrap_content" |
| 5 | + app:cameraPictureSizeMinWidth="@integer/picture_min_width" |
| 6 | + app:cameraPictureSizeMinHeight="@integer/picture_min_height" |
| 7 | + app:cameraPictureSizeMaxWidth="@integer/picture_max_width" |
| 8 | + app:cameraPictureSizeMaxHeight="@integer/picture_max_height" |
| 9 | + app:cameraPictureSizeMinArea="@integer/picture_min_area" |
| 10 | + app:cameraPictureSizeMaxArea="@integer/picture_max_area" |
| 11 | + app:cameraPictureSizeSmallest="false|true" |
| 12 | + app:cameraPictureSizeBiggest="false|true" |
| 13 | + app:cameraPictureSizeAspectRatio="@string/video_ratio" |
| 14 | + app:cameraVideoSizeMinWidth="@integer/video_min_width" |
| 15 | + app:cameraVideoSizeMinHeight="@integer/video_min_height" |
| 16 | + app:cameraVideoSizeMaxWidth="@integer/video_max_width" |
| 17 | + app:cameraVideoSizeMaxHeight="@integer/video_max_height" |
| 18 | + app:cameraVideoSizeMinArea="@integer/video_min_area" |
| 19 | + app:cameraVideoSizeMaxArea="@integer/video_max_area" |
| 20 | + app:cameraVideoSizeSmallest="false|true" |
| 21 | + app:cameraVideoSizeBiggest="false|true" |
| 22 | + app:cameraVideoSizeAspectRatio="@string/video_ratio" |
| 23 | + app:cameraSnapshotMaxWidth="@integer/snapshot_max_width" |
| 24 | + app:cameraSnapshotMaxHeight="@integer/snapshot_max_height" |
| 25 | + app:cameraFrameProcessingMaxWidth="@integer/processing_max_width" |
| 26 | + app:cameraFrameProcessingMaxHeight="@integer/processing_max_height" |
| 27 | + app:cameraFrameProcessingFormat="@integer/processing_format" |
| 28 | + app:cameraFrameProcessingPoolSize="@integer/processing_pool_size" |
| 29 | + app:cameraFrameProcessingExecutors="@integer/processing_executors" |
| 30 | + app:cameraVideoBitRate="@integer/video_bit_rate" |
| 31 | + app:cameraAudioBitRate="@integer/audio_bit_rate" |
| 32 | + app:cameraGestureTap="none|autoFocus|takePicture" |
| 33 | + app:cameraGestureLongTap="none|autoFocus|takePicture" |
| 34 | + app:cameraGesturePinch="none|zoom|exposureCorrection|filterControl1|filterControl2" |
| 35 | + app:cameraGestureScrollHorizontal="none|zoom|exposureCorrection|filterControl1|filterControl2" |
| 36 | + app:cameraGestureScrollVertical="none|zoom|exposureCorrection|filterControl1|filterControl2" |
| 37 | + app:cameraEngine="camera1|camera2" |
| 38 | + app:cameraPreview="glSurface|surface|texture" |
| 39 | + app:cameraPreviewFrameRate="@integer/preview_frame_rate" |
| 40 | + app:cameraPreviewFrameRateExact="false|true" |
| 41 | + app:cameraFacing="back|front" |
| 42 | + app:cameraHdr="on|off" |
| 43 | + app:cameraFlash="on|auto|torch|off" |
| 44 | + app:cameraWhiteBalance="auto|cloudy|daylight|fluorescent|incandescent" |
| 45 | + app:cameraMode="picture|video" |
| 46 | + app:cameraAudio="on|off|mono|stereo" |
| 47 | + app:cameraGrid="draw3x3|draw4x4|drawPhi|off" |
| 48 | + app:cameraGridColor="@color/grid_color" |
| 49 | + app:cameraPlaySounds="true|false" |
| 50 | + app:cameraVideoMaxSize="@integer/video_max_size" |
| 51 | + app:cameraVideoMaxDuration="@integer/video_max_duration" |
| 52 | + app:cameraVideoCodec="deviceDefault|h264|h263" |
| 53 | + app:cameraAutoFocusResetDelay="@integer/autofocus_delay" |
| 54 | + app:cameraAutoFocusMarker="@string/cameraview_default_autofocus_marker" |
| 55 | + app:cameraUseDeviceOrientation="true|false" |
| 56 | + app:cameraFilter="@string/real_time_filter" |
| 57 | + app:cameraPictureMetering="true|false" |
| 58 | + app:cameraPictureSnapshotMetering="false|true" |
| 59 | + app:cameraPictureFormat="jpeg|dng" |
| 60 | + app:cameraRequestPermissions="true|false" |
| 61 | + app:cameraExperimental="false|true"> |
| 62 | + |
| 63 | + <!-- Watermark! --> |
| 64 | + <ImageView |
| 65 | + android:layout_width="wrap_content" |
| 66 | + android:layout_height="wrap_content" |
| 67 | + android:layout_gravity="bottom|end" |
| 68 | + android:src="@drawable/watermark" |
| 69 | + app:layout_drawOnPreview="true|false" |
| 70 | + app:layout_drawOnPictureSnapshot="true|false" |
| 71 | + app:layout_drawOnVideoSnapshot="true|false"/> |
| 72 | + |
| 73 | +</com.otaliastudios.cameraview.CameraView>--- |
2 | 74 | layout: page
|
3 | 75 | title: "v1 Migration Guide"
|
4 | 76 | description: "Breaking Changes & new concepts"
|
|
0 commit comments