Newer
Older
GasOperationApp / app / src / main / res / layout / map_current.xml
[wangxitong] on 24 May 2021 8 KB first commit
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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/white"
    android:orientation="vertical">

    <RelativeLayout
        android:id="@+id/top_bar"
        android:layout_width="match_parent"
        android:layout_height="60dp"
        android:background="#0D64AB"
        android:gravity="center_vertical"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/back"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:layout_alignParentStart="true"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:src="@drawable/action_backward2" />

        <TextView
            android:id="@+id/title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:background="#0D64AB"
            android:gravity="center"
            android:text="作业现场名称:"
            android:textColor="@color/white"
            android:textSize="18dp" />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/tabletitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="0dp"
        android:layout_below="@id/top_bar"
        android:layout_marginRight="0dp"
        android:background="#EEEEEE"
        >
        <LinearLayout
            android:id="@+id/main_center_switcher_container"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:orientation="horizontal">
            <!--        //每个导航按钮用一个FrameLayout占位-->
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/person_list"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="作业人员列表"
                    android:textColor="@color/gray" />

            </FrameLayout>
            <TextView
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="@color/yinhui" />
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/person_manager"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="作业人员管理"
                    android:textColor="@color/gray" />

            </FrameLayout>
            <TextView
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="@color/yinhui" />
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/device_manager"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="设备管理"
                    android:textColor="@color/gray"
                    />
            </FrameLayout>
        </LinearLayout>
        <TextView
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/yinhui"
            android:layout_below="@+id/main_center_switcher_container"/>
        <LinearLayout
            android:id="@+id/main_center_switcher_container1"
            android:layout_below="@+id/main_center_switcher_container"
            android:layout_width="match_parent"
            android:layout_height="35dp"
            android:orientation="horizontal">
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/ch4"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="甲烷监测"
                    android:textColor="@color/gray" />
            </FrameLayout>
            <TextView
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="@color/yinhui" />
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/battery"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="电池信息"
                    android:textColor="@color/gray" />
            </FrameLayout>
            <TextView
                android:layout_width="1dp"
                android:layout_height="match_parent"
                android:background="@color/yinhui" />
            <FrameLayout
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1">
                <TextView
                    android:id="@+id/alarm_list"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center"
                    android:textSize="15dp"
                    android:text="报警列表"
                    android:textColor="@color/gray" />
            </FrameLayout>

        </LinearLayout>
        <TextView
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:background="@color/yinhui"
            android:layout_below="@+id/main_center_switcher_container1"/>
    </RelativeLayout>
    <com.amap.api.maps.MapView
        android:id="@+id/map"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@+id/buttombar"
        android:layout_below="@+id/tabletitle">
    </com.amap.api.maps.MapView>
    <TextView
        android:id="@+id/overall"
        android:layout_width="140dp"
        android:layout_height="40dp"
        android:layout_alignTop="@+id/map"
        android:layout_marginTop="5dp"
        android:layout_marginLeft="5dp"
        android:layout_alignParentLeft="true"
        android:gravity="center|left"
        android:layout_gravity="center|left"
        android:paddingLeft="40dp"
        android:textStyle="bold"
        android:textSize="14dp"
        android:text="风速:\n温度:"
        android:textColor="#0D64AB"
        android:background="@color/white"/>
    <ImageView
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:paddingTop="5dp"
        android:paddingBottom="5dp"
        android:layout_alignLeft="@+id/overall"
        android:layout_alignTop="@+id/overall"
        android:src="@drawable/wind"/>
    <Button
        android:id="@+id/dojob"
        android:layout_width="80dp"
        android:layout_height="30dp"
        android:layout_alignTop="@+id/map"
        android:layout_marginTop="10dp"
        android:layout_marginRight="10dp"
        android:layout_alignParentRight="true"
        android:textColor="@color/white"
        android:background="@color/red"/>
    <com.casic.gasoperation.view.ButtomBar
        android:id="@+id/buttombar"
        android:layout_alignParentBottom="true"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />

</RelativeLayout>