6464 android : textColor =" @android:color/black"
6565 android : textSize =" 14sp" />
6666
67- <Button
68- android : id =" @+id/logout_button"
69- android : layout_width =" wrap_content"
70- android : layout_height =" wrap_content"
71- android : layout_marginBottom =" 16dp"
72- android : text =" @string/logout_button_text" />
73-
7467 </RelativeLayout >
7568
76- <LinearLayout
77- android : id =" @+id/usr_statistic_bar"
78- android : layout_width =" match_parent"
79- android : layout_height =" wrap_content"
80- android : orientation =" horizontal"
81- android : background =" @drawable/profile_statistic_bar_bg"
82- app : layout_constraintTop_toBottomOf =" @id/usr_img_and_name" >
83-
84- <RelativeLayout
69+ <LinearLayout
70+ android : id =" @+id/usr_statistic_bar"
8571 android : layout_width =" match_parent"
8672 android : layout_height =" wrap_content"
87- android : layout_weight =" 1"
88- android : gravity =" center"
89- android : paddingBottom =" 5dp"
90- android : paddingTop =" 5dp" >
73+ android : orientation =" horizontal"
74+ android : background =" @drawable/profile_statistic_bar_bg"
75+ app : layout_constraintTop_toBottomOf =" @id/usr_img_and_name" >
9176
92- <LinearLayout
93- android : layout_width =" wrap_content "
77+ <RelativeLayout
78+ android : layout_width =" match_parent "
9479 android : layout_height =" wrap_content"
95- android : orientation =" vertical" >
80+ android : layout_weight =" 1"
81+ android : gravity =" center"
82+ android : paddingBottom =" 5dp"
83+ android : paddingTop =" 5dp" >
9684
97- <TextView
98- android : id =" @+id/usr_run_time"
99- android : layout_width =" match_parent"
100- android : layout_height =" wrap_content"
101- android : layout_marginBottom =" 5dp"
102- android : fontFamily =" sans-serif-light"
103- android : text =" @{profileViewModel.getTimeHMSString()}"
104- android : textColor =" @android:color/white"
105- android : textSize =" 30sp" />
106-
107- <TextView
108- android : gravity =" center"
109- android : layout_width =" match_parent"
85+ <LinearLayout
86+ android : layout_width =" wrap_content"
11087 android : layout_height =" wrap_content"
111- android : layout_marginBottom =" 5dp"
112- android : fontFamily =" sans-serif-light"
113- android : text =" @string/total_time"
114- android : textColor =" @android:color/white"
115- android : textSize =" 12sp" />
116-
117- </LinearLayout >
118-
119- </RelativeLayout >
120-
121- <RelativeLayout
122- android : layout_width =" match_parent"
123- android : layout_height =" wrap_content"
124- android : gravity =" center"
125- android : paddingBottom =" 5dp"
126- android : paddingTop =" 5dp"
127- android : layout_weight =" 1" >
128-
129- <LinearLayout
130- android : layout_width =" wrap_content"
88+ android : orientation =" vertical" >
89+
90+ <TextView
91+ android : id =" @+id/usr_run_time"
92+ android : layout_width =" match_parent"
93+ android : layout_height =" wrap_content"
94+ android : layout_marginBottom =" 5dp"
95+ android : fontFamily =" sans-serif-light"
96+ android : text =" @{profileViewModel.getTimeHMSString()}"
97+ android : textColor =" @android:color/white"
98+ android : textSize =" 30sp" />
99+
100+ <TextView
101+ android : gravity =" center"
102+ android : layout_width =" match_parent"
103+ android : layout_height =" wrap_content"
104+ android : layout_marginBottom =" 5dp"
105+ android : fontFamily =" sans-serif-light"
106+ android : text =" @string/total_time"
107+ android : textColor =" @android:color/white"
108+ android : textSize =" 12sp" />
109+
110+ </LinearLayout >
111+
112+ </RelativeLayout >
113+
114+ <RelativeLayout
115+ android : layout_width =" match_parent"
131116 android : layout_height =" wrap_content"
132- android : orientation =" vertical" >
117+ android : gravity =" center"
118+ android : paddingBottom =" 5dp"
119+ android : paddingTop =" 5dp"
120+ android : layout_weight =" 1" >
133121
134- <TextView
135- android : id =" @+id/usr_run_energy"
136- android : layout_width =" match_parent"
137- android : layout_height =" wrap_content"
138- android : layout_gravity =" center"
139- android : layout_marginBottom =" 5dp"
140- android : gravity =" center"
141- android : fontFamily =" sans-serif-light"
142- android : text =" @{profileViewModel.getTotalEnergyCaloriesString()}"
143- android : textColor =" @android:color/white"
144- android : textSize =" 30sp" />
145-
146- <TextView
147- android : gravity =" center"
148- android : layout_width =" match_parent"
122+ <LinearLayout
123+ android : layout_width =" wrap_content"
149124 android : layout_height =" wrap_content"
150- android : layout_marginBottom =" 5dp"
151- android : layout_gravity =" center"
152- android : fontFamily =" sans-serif-light"
153- android : text =" @string/total_energy"
154- android : textColor =" @android:color/white"
155- android : textSize =" 12sp" />
156- </LinearLayout >
157-
158- </RelativeLayout >
159-
160- </LinearLayout >
161-
162- <ListView
163- android : id =" @+id/run_history_list_view"
164- android : layout_width =" match_parent"
165- android : layout_height =" 0dp"
166- app : layout_constraintVertical_weight =" 1"
167- app : layout_constraintTop_toBottomOf =" @+id/usr_statistic_bar" />
125+ android : orientation =" vertical" >
126+
127+ <TextView
128+ android : id =" @+id/usr_run_energy"
129+ android : layout_width =" match_parent"
130+ android : layout_height =" wrap_content"
131+ android : layout_gravity =" center"
132+ android : layout_marginBottom =" 5dp"
133+ android : gravity =" center"
134+ android : fontFamily =" sans-serif-light"
135+ android : text =" @{profileViewModel.getTotalEnergyCaloriesString()}"
136+ android : textColor =" @android:color/white"
137+ android : textSize =" 30sp" />
138+
139+ <TextView
140+ android : gravity =" center"
141+ android : layout_width =" match_parent"
142+ android : layout_height =" wrap_content"
143+ android : layout_marginBottom =" 5dp"
144+ android : layout_gravity =" center"
145+ android : fontFamily =" sans-serif-light"
146+ android : text =" @string/total_energy"
147+ android : textColor =" @android:color/white"
148+ android : textSize =" 12sp" />
149+ </LinearLayout >
150+
151+ </RelativeLayout >
152+
153+ </LinearLayout >
154+
155+ <ImageButton
156+ android : id =" @+id/logout_button"
157+ android : layout_width =" 40dp"
158+ android : layout_height =" 40dp"
159+ android : layout_margin =" 15dp"
160+ android : background =" @android:color/transparent"
161+ android : src =" @drawable/ic_baseline_exit_to_app_24"
162+ app : layout_constraintEnd_toEndOf =" parent"
163+ app : layout_constraintTop_toTopOf =" parent" />
164+
165+ <ListView
166+ android : id =" @+id/run_history_list_view"
167+ android : layout_width =" match_parent"
168+ android : layout_height =" 0dp"
169+ app : layout_constraintVertical_weight =" 1"
170+ app : layout_constraintTop_toBottomOf =" @+id/usr_statistic_bar" />
168171
169172 </androidx .constraintlayout.widget.ConstraintLayout>
170173</layout >
0 commit comments