拍照点击
This commit is contained in:
@@ -10,24 +10,28 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/layer_change"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.otaliastudios.cameraview.CameraView
|
||||
android:id="@+id/camera"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cameraPictureSizeMaxArea="3686400"
|
||||
app:cameraPictureSizeMinArea="1166400"
|
||||
app:cameraPictureSizeMaxHeight="1920"
|
||||
app:cameraPictureSizeMinHeight="1080"
|
||||
app:cameraPictureSizeMaxWidth="1920"
|
||||
app:cameraPictureSizeMinWidth="1080"
|
||||
app:cameraPictureSizeAspectRatio="1920:1080"
|
||||
app:cameraPictureFormat="jpeg"
|
||||
app:cameraPictureSizeBiggest="true"
|
||||
app:cameraPictureSizeSmallest="true"
|
||||
app:cameraPictureMetering="true"
|
||||
android:keepScreenOn="true"
|
||||
app:cameraPictureFormat="jpeg"
|
||||
app:cameraPictureMetering="true"
|
||||
app:cameraPictureSizeAspectRatio="1920:1080"
|
||||
app:cameraPictureSizeBiggest="true"
|
||||
app:cameraPictureSizeMaxArea="3686400"
|
||||
app:cameraPictureSizeMaxHeight="1920"
|
||||
app:cameraPictureSizeMaxWidth="1920"
|
||||
app:cameraPictureSizeMinArea="1166400"
|
||||
app:cameraPictureSizeMinHeight="1080"
|
||||
app:cameraPictureSizeMinWidth="1080"
|
||||
app:cameraPictureSizeSmallest="true"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@@ -41,7 +45,17 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_default="percent"
|
||||
app:layout_constraintWidth_percent="0.4" />
|
||||
</FrameLayout>
|
||||
</FrameLayout>
|
||||
<ImageView
|
||||
android:id="@+id/iv_image"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="157dp"
|
||||
app:layout_constraintHeight_default="percent"
|
||||
app:layout_constraintHeight_percent="0.4"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_default="percent"
|
||||
app:layout_constraintWidth_percent="0.4" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_zoom_add"
|
||||
@@ -52,7 +66,6 @@
|
||||
app:layout_constraintBottom_toTopOf="@+id/btn_stop_picture"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="@+id/btn_switch"
|
||||
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
@@ -65,17 +78,17 @@
|
||||
app:layout_constraintLeft_toLeftOf="@id/iv_zoom_add"
|
||||
app:layout_constraintTop_toBottomOf="@id/iv_zoom_add" />
|
||||
|
||||
<!-- <CheckBox-->
|
||||
<!-- android:id="@+id/cb_map_type"-->
|
||||
<!-- android:layout_width="50dp"-->
|
||||
<!-- android:layout_height="50dp"-->
|
||||
<!-- android:layout_marginTop="15dp"-->
|
||||
<!-- android:background="@drawable/atlas_selector"-->
|
||||
<!-- android:button="@null"-->
|
||||
<!-- android:checked="false"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- app:layout_constraintLeft_toLeftOf="@id/iv_zoom_del"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/iv_zoom_del" />-->
|
||||
<!-- <CheckBox-->
|
||||
<!-- android:id="@+id/cb_map_type"-->
|
||||
<!-- android:layout_width="50dp"-->
|
||||
<!-- android:layout_height="50dp"-->
|
||||
<!-- android:layout_marginTop="15dp"-->
|
||||
<!-- android:background="@drawable/atlas_selector"-->
|
||||
<!-- android:button="@null"-->
|
||||
<!-- android:checked="false"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- app:layout_constraintLeft_toLeftOf="@id/iv_zoom_del"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/iv_zoom_del" />-->
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_location"
|
||||
@@ -87,7 +100,6 @@
|
||||
app:layout_constraintLeft_toLeftOf="@id/iv_zoom_del"
|
||||
app:layout_constraintTop_toBottomOf="@id/iv_zoom_del" />
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_switch"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -106,6 +118,7 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/capture_picture"
|
||||
style="@style/user_data_style"
|
||||
@@ -131,4 +144,5 @@
|
||||
app:layout_constraintBottom_toBottomOf="@id/capture_picture"
|
||||
app:layout_constraintLeft_toRightOf="@id/capture_picture"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user