Newer
Older
SanxiTownSmartWell / app / src / main / res / layout / activity_edit_device.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/mainBackColor"
    android:orientation="vertical"
    tools:context=".view.EditDeviceActivity">

    <include layout="@layout/include_base_title" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/dp_10"
        android:background="@drawable/bg_layout"
        android:orientation="vertical">

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="设备编号" />

            <TextView
                android:id="@+id/deviceCodeView"
                style="@style/RelativeTextViewStyle"
                android:layout_alignParentEnd="true" />
        </RelativeLayout>

        <View style="@style/DividerViewStyle" />

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="设备类型" />

            <TextView
                android:id="@+id/deviceTypeView"
                style="@style/RelativeTextViewStyle"
                android:layout_alignParentEnd="true" />
        </RelativeLayout>

        <View style="@style/DividerViewStyle" />

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="设备型号" />

            <TextView
                android:id="@+id/deviceModelView"
                style="@style/RelativeTextViewStyle"
                android:layout_alignParentEnd="true" />
        </RelativeLayout>

        <View style="@style/DividerViewStyle" />

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="井编号" />

            <EditText
                android:id="@+id/wellCodeView"
                style="@style/RelativeEditTextStyle" />
        </RelativeLayout>

        <View style="@style/DividerViewStyle" />

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="安装日期" />

            <TextView
                android:id="@+id/installDateView"
                style="@style/RelativeTextViewStyle"
                android:layout_alignParentEnd="true" />
        </RelativeLayout>

        <View style="@style/DividerViewStyle" />

        <RelativeLayout style="@style/RelativeItemLayoutStyle">

            <TextView
                style="@style/RelativeTextViewStyle"
                android:text="集中器编号" />

            <EditText
                android:id="@+id/concentratorView"
                style="@style/RelativeEditTextStyle"
                android:hint="非必填"
                android:text=""
                android:textColorHint="@color/hintTextColor" />
        </RelativeLayout>
    </LinearLayout>

    <Button
        android:id="@+id/saveButton"
        style="@style/MainButtonStyle"
        android:layout_width="match_parent"
        android:layout_marginHorizontal="@dimen/dp_10"
        android:layout_marginVertical="@dimen/dp_20"
        android:text="保存" />
</LinearLayout>