haijiang
2018-07-17 63b87b529196c056fb4d96a58eded3936d3445f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?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>