<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:padding="10dp"
|
android:background="@android:color/white"
|
android:orientation="vertical">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
|
android:text="服务器IP地址:"/>
|
<com.google.android.material.textfield.TextInputEditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/input_ip"
|
android:text="192.168.10.234"
|
/>
|
|
</LinearLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="服务器端口号::"/>
|
<com.google.android.material.textfield.TextInputEditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/input_port"
|
android:text="60000"
|
/>
|
|
</LinearLayout>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/btn_connect"
|
android:text="连接"/>
|
<androidx.appcompat.widget.AppCompatEditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:visibility="gone"
|
android:id="@+id/sendtxt"/>
|
<TableLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TableRow>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_register"
|
android:text="注册"/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_auth"
|
android:text="鉴权"/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_gain"
|
android:text="获取信息"/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_start_exam"
|
android:text="开始考试"/>
|
|
</TableRow>
|
<TableRow>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_fail"
|
android:text="扣分项目"/>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_gps"
|
android:text="位置上报"/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_stop_exam"
|
android:text="结束考试"/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:id="@+id/btn_keepalive"
|
android:text="心跳"/>
|
|
</TableRow>
|
</TableLayout>
|
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:layout_gravity="end"
|
android:id="@+id/btn_send"
|
android:text="发送"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@android:color/darker_gray"
|
android:visibility="gone"
|
android:textSize="19sp"
|
android:id="@+id/content"
|
android:text="flskajf"/>
|
</LinearLayout>
|