<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@mipmap/bg"
|
android:fitsSystemWindows="true"
|
android:orientation="vertical">
|
|
<include layout="@layout/top_bar_layout" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="@dimen/x8"
|
android:layout_marginRight="@dimen/x8"
|
android:layout_marginTop="@dimen/x20"
|
android:background="@mipmap/bg_chart"
|
android:orientation="vertical"
|
android:padding="@dimen/x10">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<ImageView
|
android:layout_width="@dimen/x10"
|
android:layout_height="@dimen/x10"
|
android:src="@mipmap/icon_yuan" />
|
|
<TextView
|
android:id="@+id/tv_sub"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_horizontal"
|
android:layout_marginLeft="@dimen/x4"
|
android:layout_marginRight="@dimen/x4"
|
android:text="PM2.5走势图"
|
android:textColor="@color/white"
|
android:textSize="16sp" />
|
|
<ImageView
|
android:layout_width="@dimen/x10"
|
android:layout_height="@dimen/x10"
|
android:src="@mipmap/icon_xia" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/tv_unit"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="@color/blue_txt"
|
android:textSize="14sp" />
|
<lecho.lib.hellocharts.view.LineChartView
|
android:id="@+id/chart"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/y300"
|
android:layout_marginTop="@dimen/x8"/>
|
</LinearLayout>
|
|
</LinearLayout>
|