Newer
Older
OperationSite / app / src / main / res / layout / activity_install_equipment.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <com.pengxh.kt.lite.widget.TitleBarView
        android:id="@+id/titleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/mainThemeColor"
        app:tbv_smaller_title="true"
        app:tbv_text="设备录入" />

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

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

            <LinearLayout style="@style/LinearLayoutStyle">

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

                <com.pengxh.kt.lite.widget.DeleteEditText
                    android:id="@+id/deviceCodeView"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:background="@null"
                    android:gravity="end|center_vertical"
                    android:hint="请输入设备上的编号"
                    android:paddingHorizontal="@dimen/dp_10"
                    android:singleLine="true"
                    android:textColor="@color/mainTextColor"
                    android:textColorHint="@color/hintTextColor"
                    android:textSize="@dimen/sp_16" />

                <ImageView
                    android:id="@+id/scanCodeView"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:src="@drawable/ic_scan" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

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

                <View
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1" />

                <TextView
                    android:id="@+id/deviceModelView"
                    style="@style/LinearLayoutTextViewStyle" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="设备名称" />

                <com.pengxh.kt.lite.widget.DeleteEditText
                    android:id="@+id/deviceNameView"
                    style="@style/LinearLayoutEditTextStyle" />
            </LinearLayout>

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

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="112dp"
                android:orientation="horizontal">

                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:orientation="vertical">

                    <LinearLayout style="@style/LinearLayoutStyle">

                        <TextView
                            style="@style/LinearLayoutTextViewStyle"
                            android:text="设备经度" />

                        <com.pengxh.kt.lite.widget.DeleteEditText
                            android:id="@+id/longitudeView"
                            style="@style/LinearLayoutEditTextStyle"
                            android:inputType="numberDecimal"
                            android:textColorHint="@color/hintTextColor" />
                    </LinearLayout>

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

                    <LinearLayout style="@style/LinearLayoutStyle">

                        <TextView
                            style="@style/LinearLayoutTextViewStyle"
                            android:text="设备纬度" />

                        <com.pengxh.kt.lite.widget.DeleteEditText
                            android:id="@+id/latitudeView"
                            style="@style/LinearLayoutEditTextStyle"
                            android:inputType="numberDecimal"
                            android:textColorHint="@color/hintTextColor" />
                    </LinearLayout>
                </LinearLayout>

                <ImageView
                    android:id="@+id/locationImageView"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_gravity="center_vertical"
                    android:src="@drawable/ic_location_install" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="安装位置" />

                <com.pengxh.kt.lite.widget.DeleteEditText
                    android:id="@+id/locationView"
                    style="@style/LinearLayoutEditTextStyle" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="安装人员" />

                <com.pengxh.kt.lite.widget.DeleteEditText
                    android:id="@+id/operatorView"
                    style="@style/LinearLayoutEditTextStyle" />
            </LinearLayout>

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

            <TextView
                style="@style/LinearLayoutTextViewStyle"
                android:layout_height="@dimen/itemLayoutHeight"
                android:text="现场照片" />

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/recyclerView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="@dimen/dp_10"
                android:paddingHorizontal="@dimen/dp_10"
                app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
                app:spanCount="3" />
        </LinearLayout>
    </androidx.core.widget.NestedScrollView>

    <Button
        android:id="@+id/uploadDeviceButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/dp_10"
        android:text="安\u3000装" />
</LinearLayout>