<?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/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="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="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: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" > <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" /> </com.casic.gasoperation.view.ButtomBar> </RelativeLayout>