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.

69 lines
2.4 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"
tools:context="com.example.myapplication.UVCActivity">
<TextureView
android:id="@+id/texture_view"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintDimensionRatio="h,640:480"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent">
<TextView
android:id="@+id/pushing_state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#66ffffff"
app:layout_constraintBottom_toTopOf="@+id/pushing"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/pushing"
android:onClick="onPush"
android:text="推送" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onRecord"
android:text="录像" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onQuit"
android:text="退出" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onBackground"
android:text="后台" />
</LinearLayout>
</TableLayout>
</androidx.constraintlayout.widget.ConstraintLayout>