<?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"> <RelativeLayout android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:padding="8dp" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:layout_width="25dp" android:layout_height="40dp" android:layout_toRightOf="@id/search_adress" android:src="@drawable/search" android:layout_marginLeft="5dp" android:gravity="center_vertical" android:id="@+id/search" /> <ImageView android:id="@+id/add" android:layout_width="25dp" android:layout_height="40dp" android:layout_gravity="center" android:layout_alignParentRight="true" android:gravity="center_vertical" android:src="@drawable/add1" /> <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> <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="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.7"> <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> </LinearLayout> <TextView android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/yinhui" android:layout_below="@+id/main_center_switcher_container"/> </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>