Newer
Older
GasOperationApp / app / src / main / res / layout / device_list.xml
[wangxitong] on 24 May 2021 7 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_alignParentLeft="true"
            android:layout_alignParentStart="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:src="@drawable/action_backward2"/>
        <TextView
            android:layout_centerInParent="true"
            android:gravity="center"
            android:text="设备管理"
            android:textColor="@color/white"
            android:textSize="20dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#0D64AB"/>

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/title"
        android:layout_below="@+id/top_bar"
        android:layout_width="fill_parent"
        android:layout_height="50dp"
        android:paddingRight="20dp"
        android:gravity="center">

        <ImageView
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_toRightOf="@id/search_adress"
            android:src="@drawable/search2"
            android:layout_marginLeft="5dp"
            android:gravity="center_vertical"
            android:id="@+id/search" />

        <ImageView
            android:id="@+id/add"
            android:layout_width="30dp"
            android:layout_height="40dp"
            android:layout_gravity="center"

            android:layout_alignParentRight="true"
            android:gravity="center_vertical"
            android:src="@drawable/add2" />

        <EditText
            android:id="@+id/search_adress"
            android:layout_width="220dp"
            android:layout_height="40.0dp"
            android:layout_marginLeft="15dp"
            android:hint="请输入设备编号"
            android:background="@drawable/bg_edittext"
            android:gravity="center_vertical"
            android:inputType="textMultiLine"
            android:padding="6.0dip"/>
        <!--                android:textAppearance="?android:textAppearanceMedium"/>-->
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/tabletitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="0dp"
        android:layout_below="@id/title"
        android:layout_marginRight="0dp"
        android:background="#EEEEEE"
        >
        <LinearLayout
            android:id="@+id/main_center_switcher_container"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            android:orientation="horizontal">
            <!--        //每个导航按钮用一个FrameLayout占位-->
<!--            <FrameLayout-->
<!--                android:layout_width="0dp"-->
<!--                android:layout_height="match_parent"-->
<!--                android:layout_weight="0.5">-->
<!--                <TextView-->
<!--                    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: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="0.8">
                <TextView
                    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: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="0.8">
                <TextView
                    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:layout_below="@+id/main_center_switcher_container"
            android:background="@color/yinhui" />
    </RelativeLayout>
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/tabletitle"
        android:layout_above="@+id/buttombar">

        <LinearLayout
            android:id="@+id/wr_areas"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" >
        </LinearLayout>
    </ScrollView>
    <com.casic.gasoperation.view.ButtomBar
        android:id="@+id/buttombar"
        android:layout_alignParentBottom="true"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />

</RelativeLayout>