219 lines
8.6 KiB
XML
219 lines
8.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#FF444444"
|
|
tools:context=".activity.PicturesActivity">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/layer_change"
|
|
android:layout_width="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"
|
|
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_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.tencent.tencentmap.mapsdk.maps.TextureMapView
|
|
android:id="@+id/text_map_view"
|
|
android:layout_width="200dp"
|
|
android:layout_height="157dp"
|
|
app:layout_constraintHeight_default="percent"
|
|
app:layout_constraintHeight_percent="0.4"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintWidth_default="percent"
|
|
app:layout_constraintWidth_percent="0.4" />
|
|
|
|
</FrameLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/image_view"
|
|
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" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dp"
|
|
android:textColor="@color/white"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_zoom_add"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginEnd="25dp"
|
|
android:src="@mipmap/zoom_add"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toTopOf="@+id/btn_stop_picture"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_zoom_del"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="15dp"
|
|
android:src="@mipmap/zoom_del"
|
|
android:visibility="gone"
|
|
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" />-->
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_location"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="15dp"
|
|
android:src="@mipmap/mine_location"
|
|
android:visibility="gone"
|
|
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"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginEnd="25dp"
|
|
android:text="切换"
|
|
android:visibility="gone"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/radio_group_picture"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="35dp"
|
|
android:orientation="vertical"
|
|
android:visibility="visible"
|
|
app:layout_constraintBottom_toTopOf="@+id/capture_picture"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/image_view">
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_btn_hand"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:button="@null"
|
|
android:text="手动"
|
|
android:textColor="@color/white" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_btn_auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:button="@null"
|
|
android:text="自动1秒"
|
|
android:textColor="@color/white" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/radio_btn_auto_sec"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:button="@null"
|
|
android:text="自动2秒"
|
|
android:textColor="@color/white" />
|
|
|
|
</RadioGroup>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_pic_road"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/take_pic_arrow"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_pic_video"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/take_poi_video_arrow"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
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"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="20dp"
|
|
android:background="@drawable/user_style"
|
|
android:button="@null"
|
|
android:gravity="center"
|
|
android:padding="@dimen/fab_margin"
|
|
android:text="开始采集"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@id/btn_stop_picture" />
|
|
|
|
<Button
|
|
android:id="@+id/btn_stop_picture"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/uploding_shape"
|
|
android:text="结束采集"
|
|
android:textColor="@color/colorBlue"
|
|
app:layout_constraintBottom_toBottomOf="@id/capture_picture"
|
|
app:layout_constraintLeft_toRightOf="@id/capture_picture"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |