<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:id="@+id/activity_main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
>
|
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:layout_marginTop="20dp">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:text="手动添加"
|
android:gravity="center|left"
|
android:textSize="24sp"
|
android:textColor="@android:color/black"
|
/>
|
|
|
|
<TextView
|
android:layout_width="100dp"
|
android:layout_height="match_parent"
|
android:gravity="center|left"
|
android:textSize="18sp"
|
android:textColor="@android:color/black"
|
android:text="设备参数" />
|
|
<EditText
|
android:id="@+id/et_subnetID"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="子网号(范围0 - 254)"
|
/>
|
|
<EditText
|
android:id="@+id/et_deviceID"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="设备号(范围0 - 254)"
|
/>
|
<EditText
|
android:id="@+id/et_bitType"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="大类"
|
/>
|
|
<EditText
|
android:id="@+id/et_littleType"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="小类"
|
/>
|
|
<EditText
|
android:id="@+id/et_remarks_mk"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:hint="请输入模块备注"
|
/>
|
|
<EditText
|
android:id="@+id/et_remarks"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:hint="请输入备注,多个回路备注“-”分割"
|
/>
|
|
<EditText
|
android:id="@+id/et_port"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="4"
|
android:text="6000"
|
android:hint="端口"
|
/>
|
|
<Button
|
android:id="@+id/btn_add"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_marginTop="10dp"
|
android:text="添加"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|