Newer
Older
QingDaoSmartWell / app / src / main / res / layout / activity_well_detail.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.WellDetailActivity">

    <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:orientation="vertical"
            android:padding="@dimen/dp_10">

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

                <RelativeLayout style="@style/itemLayoutStyle">

                    <TextView
                        style="@style/textViewStyle"
                        android:text="井名称" />

                    <TextView
                        android:id="@+id/wellNameView"
                        style="@style/textViewStyle"
                        android:layout_alignParentEnd="true"
                        android:text="@string/unknown"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>

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

                <RelativeLayout style="@style/itemLayoutStyle">

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

                    <TextView
                        android:id="@+id/wellCodeView"
                        style="@style/textViewStyle"
                        android:layout_alignParentEnd="true"
                        android:text="@string/unknown"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>

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

                <RelativeLayout style="@style/itemLayoutStyle">

                    <TextView
                        style="@style/textViewStyle"
                        android:text="井类型" />

                    <TextView
                        android:id="@+id/wellTypeView"
                        style="@style/textViewStyle"
                        android:layout_alignParentEnd="true"
                        android:text="@string/unknown"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>

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

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@drawable/bg_solid_layout_white_radius_10"
                    android:paddingVertical="16dp">

                    <TextView
                        android:id="@+id/tempView"
                        style="@style/textViewStyle"
                        android:layout_centerVertical="true"
                        android:text="权属单位" />

                    <TextView
                        android:id="@+id/ownershipView"
                        style="@style/textViewStyle"
                        android:layout_alignParentEnd="true"
                        android:layout_toEndOf="@id/tempView"
                        android:gravity="end"
                        android:text="海洋石油工程(青岛)有限公司"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>

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

                <RelativeLayout style="@style/itemLayoutStyle">

                    <TextView
                        style="@style/textViewStyle"
                        android:text="井深(米)" />

                    <TextView
                        android:id="@+id/wellDepthView"
                        style="@style/textViewStyle"
                        android:layout_alignParentEnd="true"
                        android:text="@string/unknown"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>

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

                <RelativeLayout style="@style/itemLayoutStyle">

                    <LinearLayout
                        android:id="@+id/tempLayout"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:paddingHorizontal="@dimen/dp_10">

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="match_parent"
                            android:gravity="center_vertical"
                            android:text="详细地址"
                            android:textColor="@color/mainTextColor"
                            android:textSize="@dimen/textFontSize" />

                        <ImageView
                            android:id="@+id/tipsImageView"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="@dimen/dp_10"
                            android:background="@drawable/ic_info"
                            android:visibility="gone" />
                    </LinearLayout>

                    <TextView
                        android:id="@+id/wellLocationView"
                        style="@style/textViewStyle"
                        android:layout_width="match_parent"
                        android:layout_alignParentEnd="true"
                        android:layout_toEndOf="@id/tempLayout"
                        android:gravity="end|center_vertical"
                        android:singleLine="true"
                        android:text="@string/unknown"
                        android:textColor="@color/subTextColor"
                        android:textSize="@dimen/textFontSize" />
                </RelativeLayout>
            </LinearLayout>
        </LinearLayout>
    </androidx.core.widget.NestedScrollView>
</LinearLayout>