Newer
Older
OperationSite / app / src / main / res / layout / activity_upload_activity.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:background="@color/mainBackColor"
    android:orientation="vertical">

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

    <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/eventNameView"
                    style="@style/LinearLayoutEditTextStyle"
                    android:hint="请简要输入事件名称" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="上报人员" />

                <TextView
                    android:id="@+id/uploadPersonView"
                    style="@style/LinearLayoutTextViewStyle"
                    android:layout_width="match_parent"
                    android:gravity="end|center"
                    android:text="@string/unknown"
                    android:textColor="@color/subTextColor" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="联系方式" />

                <TextView
                    android:id="@+id/personNumberView"
                    style="@style/LinearLayoutTextViewStyle"
                    android:layout_width="match_parent"
                    android:gravity="end|center"
                    android:text="@string/unknown"
                    android:textColor="@color/subTextColor" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="事件位置" />

                <TextView
                    android:id="@+id/eventLocationView"
                    style="@style/LinearLayoutTextViewStyle"
                    android:layout_width="0dp"
                    android:layout_weight="1"
                    android:gravity="end|center"
                    android:textColor="@color/subTextColor" />

                <ImageView
                    android:id="@+id/locationImageView"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:layout_marginEnd="@dimen/dp_5"
                    android:src="@mipmap/well_location" />
            </LinearLayout>

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

            <LinearLayout style="@style/LinearLayoutStyle">

                <TextView
                    style="@style/LinearLayoutTextViewStyle"
                    android:text="事件描述" />

                <TextView
                    android:id="@+id/inputLengthView"
                    style="@style/LinearLayoutTextViewStyle"
                    android:layout_width="match_parent"
                    android:gravity="end|center"
                    android:text="0/100"
                    android:textColor="@color/subTextColor" />
            </LinearLayout>

            <com.pengxh.kt.lite.widget.DeleteEditText
                android:id="@+id/siteEditView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="@dimen/dp_10"
                android:background="@drawable/bg_stroke_layout_radius_3"
                android:gravity="top"
                android:inputType="textMultiLine"
                android:padding="@dimen/dp_3"
                android:paddingVertical="@dimen/dp_5"
                android:textColor="@color/subTextColor"
                android:textColorHint="@color/hintTextColor" />

            <TextView
                android:layout_width="match_parent"
                android:layout_height="@dimen/itemLayoutHeight"
                android:gravity="center_vertical"
                android:paddingHorizontal="@dimen/dp_10"
                android:text="现场照片"
                android:textColor="@color/mainTextColor"
                android:textSize="@dimen/sp_16" />

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/addImageRecyclerView"
                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/uploadEventButton"
        style="@style/MainButtonStyle"
        android:layout_margin="@dimen/dp_10"
        android:text="事件上传" />
</LinearLayout>