<?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"
|
|
tools:context="com.hdl.sdk.ttl_sdk.activity.SettingActivity">
|
|
<include
|
android:id="@+id/hdl_top_bar_layout"
|
layout="@layout/hdl_toolbar_top_view_b"/>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_below="@+id/hdl_top_bar_layout"
|
android:layout_marginLeft="10dp"
|
android:layout_marginRight="10dp"
|
android:layout_marginTop="20dp">
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:text="手动添加不支持搜索的设备"
|
android:gravity="center|left"
|
android:textSize="@dimen/ts_24"
|
android:textColor="@color/black"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="40dp">
|
|
<TextView
|
android:layout_width="100dp"
|
android:layout_height="match_parent"
|
android:gravity="center|left"
|
android:textSize="@dimen/ts_18"
|
android:textColor="@color/black"
|
android:text="设备类型:" />
|
|
<Spinner
|
android:id="@+id/spinner_device_type"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:minWidth="120dp"></Spinner>
|
</LinearLayout>
|
|
|
<TextView
|
android:layout_width="100dp"
|
android:layout_height="match_parent"
|
android:gravity="center|left"
|
android:textSize="@dimen/ts_18"
|
android:textColor="@color/black"
|
android:text="设备参数" />
|
|
<EditText
|
android:id="@+id/et_subnetID"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="@string/et_subnetid_hint"
|
/>
|
|
<EditText
|
android:id="@+id/et_deviceID"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:hint="@string/et_deviceid_hint"
|
/>
|
<EditText
|
android:id="@+id/et_channelNum"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:text="1"
|
android:hint="回路号"
|
/>
|
<EditText
|
android:id="@+id/et_index"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="10dp"
|
android:inputType="number"
|
android:maxLength="3"
|
android:text="1"
|
android:hint="序列号"
|
/>
|
<EditText
|
android:id="@+id/et_remarks"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginTop="10dp"
|
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>
|