<!--?xml version="1.0" encoding="utf-8"?-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_main"
android:background="@color/colorPrimary"
android:layout_width="match_parent"
android:layout_height="match_parent">
<lecho.lib.hellocharts.view.LineChartView
android:id="@+id/chartView"
android:layout_width="match_parent"
android:layout_height="300dp"
android:padding="20dp" />
<LinearLayout
android:id="@+id/btn_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/chartView"
android:orientation="horizontal">
<Button
android:id="@+id/but_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:gravity="center"
android:text="查看温度">
</Button>
<Button
android:id="@+id/but_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:gravity="center"
android:text="查看湿度">
</Button>
</LinearLayout>
<Button
android:id="@+id/but_3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:layout_weight="1"
android:layout_below="@+id/btn_layout"
android:gravity="center"
android:text="跳转" />
</RelativeLayout>