wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
   <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"
    tools:context="nodomain.freeyourgadget.gadgetbridge.activities.VO2Max">
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <TextView
            android:id="@+id/vo2max_date_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textSize="20sp"
            android:layout_marginTop="15dp"
            android:layout_marginBottom="20dp"
            />
 
        <GridLayout
            android:id="@+id/tiles_grid_wrapper"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:columnCount="2"
            >
            <RelativeLayout
                android:id="@+id/vo2max_running_card_layout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="8dp"
                android:orientation="vertical"
                tools:ignore="UselessParent"
                android:layout_gravity="fill"
                android:layout_columnWeight="1"
                >
 
                <ImageView
                    android:id="@+id/vo2max_running_gauge"
                    android:layout_width="150dp"
                    android:layout_height="75dp"
                    android:layout_centerHorizontal="true"
                    android:scaleType="fitStart" />
 
                <TextView
                    android:id="@+id/vo2max_running_gauge_value"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="28dp"
                    android:text="@string/stats_empty_value"
                    android:textSize="30sp" />
 
                <TextView
                    android:id="@+id/vo2max_running_gauge_label"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/vo2max_running_gauge_value"
                    android:layout_centerHorizontal="true"
                    android:text="@string/activity_type_running" />
 
            </RelativeLayout>
            <RelativeLayout
                android:id="@+id/vo2max_cycling_card_layout"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="8dp"
                android:orientation="vertical"
                tools:ignore="UselessParent"
                android:layout_gravity="fill"
                android:layout_columnWeight="1"
                >
 
                <ImageView
                    android:id="@+id/vo2max_cycling_gauge"
                    android:layout_width="150dp"
                    android:layout_height="75dp"
                    android:layout_centerHorizontal="true"
                    android:scaleType="fitStart" />
 
                <TextView
                    android:id="@+id/vo2max_cycling_gauge_value"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="28dp"
                    android:text="@string/stats_empty_value"
                    android:textSize="30sp" />
 
                <TextView
                    android:id="@+id/vo2max_cycling_gauge_label"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/vo2max_cycling_gauge_value"
                    android:layout_centerHorizontal="true"
                    android:text="@string/title_cycling" />
 
            </RelativeLayout>
 
        </GridLayout>
        <TextView
            android:layout_marginTop="30dp"
            android:layout_marginStart="25dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="start"
            android:textSize="20sp"
            android:text="@string/thirty_days_timeline"
            />
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="250sp"
            >
            <com.github.mikephil.charting.charts.LineChart
                android:id="@+id/vo2max_chart"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="2" />
        </LinearLayout>
 
    </LinearLayout>
 
</RelativeLayout>