Newer
Older
SanxiTownSmartWell / app / src / main / res / layout / activity_edit_well.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.EditWellActivity">

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

    <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:scrollbars="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <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="井名称" />

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

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

                <RelativeLayout style="@style/RelativeItemLayoutStyle">

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

                    <TextView
                        android:id="@+id/wellCodeView"
                        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/wellTypeView"
                        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/ownerShipView"
                        style="@style/RelativeTextViewStyle"
                        android:layout_alignParentEnd="true" />
                </RelativeLayout>

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

                <RelativeLayout style="@style/RelativeItemLayoutStyle">

                    <TextView
                        style="@style/RelativeTextViewStyle"
                        android:text="井深(m)" />

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

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

                <RelativeLayout style="@style/RelativeItemLayoutStyle">

                    <TextView
                        style="@style/RelativeTextViewStyle"
                        android:text="经度" />

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

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

                <RelativeLayout style="@style/RelativeItemLayoutStyle">

                    <TextView
                        style="@style/RelativeTextViewStyle"
                        android:text="纬度" />

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

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

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical">

                    <TextView
                        style="@style/RelativeTextViewStyle"
                        android:layout_height="@dimen/itemLayoutHeight"
                        android:text="路标图片" />

                    <androidx.recyclerview.widget.RecyclerView
                        android:id="@+id/imageRecyclerView"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginHorizontal="@dimen/dp_10"
                        android:nestedScrollingEnabled="false"
                        android:scrollbars="none" />
                </LinearLayout>

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

                <RelativeLayout style="@style/RelativeItemLayoutStyle">

                    <TextView
                        style="@style/RelativeTextViewStyle"
                        android:text="所在区域" />

                    <TextView
                        android:id="@+id/districtView"
                        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/addressView"
                        style="@style/RelativeEditTextStyle" />
                </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>
    </androidx.core.widget.NestedScrollView>
</LinearLayout>