You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.8 KiB
XML
47 lines
1.8 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:keepScreenOn="true"
|
|
tools:context=".ui.CameraChannelActivity">
|
|
|
|
<androidx.camera.view.PreviewView
|
|
android:id="@+id/viewFinder"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- <Button-->
|
|
<!-- android:id="@+id/image_capture_button"-->
|
|
<!-- android:layout_width="110dp"-->
|
|
<!-- android:layout_height="110dp"-->
|
|
<!-- android:layout_marginEnd="50dp"-->
|
|
<!-- android:layout_marginBottom="50dp"-->
|
|
<!-- android:elevation="2dp"-->
|
|
<!-- android:text="拍照"-->
|
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
<!-- app:layout_constraintEnd_toStartOf="@id/vertical_centerline"-->
|
|
<!-- app:layout_constraintLeft_toLeftOf="parent" />-->
|
|
<Button
|
|
android:id="@+id/image_capture_button"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginBottom="40dp"
|
|
android:background="@mipmap/takepic"
|
|
android:shadowColor="@null"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/vertical_centerline"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent=".50" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|