<?xml version="1.0" encoding="utf-8"?>
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:padding="10dp"
|
android:gravity="center_horizontal"
|
>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@android:color/black"
|
android:text="@string/rtk_addr_des"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="15dp"
|
android:text="IP:"/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/rtk_addr_ip"
|
android:text="192.168.23.12"
|
android:background="@android:drawable/editbox_background_normal"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:text="Port:"/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/rtk_addr_port"
|
android:text="8080"
|
android:background="@android:drawable/editbox_background_normal"/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:background="@color/colorAccent"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textColor="@android:color/black"
|
android:text="登录信息:"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="15dp"
|
android:text="省ID:"/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_provice_id"
|
android:text="12"
|
android:inputType="numberDecimal"
|
android:background="@android:drawable/editbox_background_normal"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:text="市ID:"/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_city_id"
|
android:text="192"
|
android:inputType="numberDecimal"
|
android:background="@android:drawable/editbox_background_normal"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:text="电话:"/>
|
<EditText
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_phone"
|
android:text="19234567894"
|
android:inputType="numberDecimal"
|
android:background="@android:drawable/editbox_background_normal"/>
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:background="@color/colorAccent"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_reg"
|
android:text="@string/rtk_register_status"
|
android:layout_weight="1"/>
|
<TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_connect"
|
android:text="@string/rtk_connect_status"
|
android:layout_weight="1"/>
|
<TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_imei"
|
android:text="@string/rtk_config_imei"
|
android:layout_weight="1"/>
|
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:background="@color/colorAccent"
|
/>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
<TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_login"
|
android:text="@string/rtk_config_login"
|
android:layout_weight="1"/> <TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_model"
|
android:visibility="gone"
|
android:text="@string/rtk_config_model"
|
android:layout_weight="1"/>
|
<TextView
|
android:textColor="@android:color/black"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_rtk_sn"
|
android:text="@string/rtk_config_sn"
|
android:layout_weight="1"/>
|
|
</LinearLayout>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:background="@color/colorAccent"
|
/>
|
<Button
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/btn_save_rtk"
|
android:text="保存"/>
|
</LinearLayout>
|
</ScrollView>
|