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.
TermApp/app/src/main/res/layout/activity_main.xml

155 lines
5.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
2 years ago
<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:orientation="horizontal"
tools:context=".MainActivity">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="38dp"
android:layout_marginTop="38dp"
android:text="Server"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/server"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginLeft="40dp"
android:ems="10"
android:inputType=""
app:layout_constraintBottom_toBottomOf="@+id/textView"
app:layout_constraintStart_toEndOf="@+id/textView"
app:layout_constraintTop_toTopOf="@+id/textView" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginTop="52dp"
android:gravity="center"
android:text="Port"
app:layout_constraintLeft_toLeftOf="@+id/textView"
app:layout_constraintTop_toBottomOf="@+id/textView" />
<EditText
android:id="@+id/port"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType=""
2 years ago
android:text=""
app:layout_constraintBottom_toBottomOf="@+id/textView2"
app:layout_constraintLeft_toLeftOf="@+id/server"
app:layout_constraintLeft_toRightOf="@+id/textView2"
app:layout_constraintTop_toTopOf="@+id/textView2" />
2 years ago
<Button
android:id="@+id/startServBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
app:layout_constraintTop_toBottomOf="@+id/port"
android:text="Start" />
<Button
android:id="@+id/stopServBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
android:enabled="false"
2 years ago
app:layout_constraintTop_toBottomOf="@+id/port"
app:layout_constraintStart_toEndOf="@+id/startServBtn"
android:text="Stop" />
<Button
2 years ago
android:id="@+id/simchange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
app:layout_constraintTop_toBottomOf="@+id/startServBtn"
app:layout_constraintStart_toStartOf="@+id/startServBtn"
android:text="sim卡获取" />
<Button
2 years ago
android:id="@+id/simchange2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
app:layout_constraintTop_toBottomOf="@+id/startServBtn"
app:layout_constraintStart_toEndOf="@+id/simchange"
android:text="切换sim2" />
<Button
android:id="@+id/takePhotoBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
app:layout_constraintTop_toBottomOf="@+id/simchange"
android:text="Take Photo"
/>
<Button
2 years ago
android:id="@+id/takePhotoBtn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
app:layout_constraintTop_toBottomOf="@+id/simchange"
app:layout_constraintStart_toEndOf="@+id/takePhotoBtn"
android:text="TP 2"
/>
<Button
2 years ago
android:id="@+id/takePhotoBtn3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
android:text="TP 3"
app:layout_constraintTop_toBottomOf="@+id/simchange"
app:layout_constraintStart_toEndOf="@+id/takePhotoBtn2"
/>
2 years ago
<Button
android:id="@+id/takePhotoBtn4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2 years ago
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:text="TP 4"
app:layout_constraintTop_toBottomOf="@+id/simchange"
app:layout_constraintStart_toEndOf="@+id/takePhotoBtn3"
/>
<TextView
android:id="@+id/sample_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2 years ago
app:layout_constraintTop_toTopOf="parent" />
<SurfaceView
android:id="@+id/surfaceView"
android:layout_width="411dp"
android:layout_height="441dp"
android:layout_marginStart="2dp"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
tools:layout_editor_absoluteY="288dp" />
2 years ago
</androidx.constraintlayout.widget.ConstraintLayout>