activity_result.xml
1    <?xml version="1.0" encoding="utf-8"?>
2    <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3        xmlns:app="http://schemas.android.com/apk/res-auto"
4        xmlns:tools="http://schemas.android.com/tools"
5        android:layout_width="match_parent"
6        android:id="@+id/swipe_result"
7        android:layout_height="match_parent"
8        android:background="@color/colorPrimary">
9    
10       <androidx.constraintlayout.widget.ConstraintLayout
11           android:layout_width="match_parent"
12           android:layout_height="wrap_content"
13           android:id="@+id/title_bar"
14           android:visibility="invisible"
15           android:background="@color/colorPrimary"
16           app:layout_constraintEnd_toEndOf="parent"
17           app:layout_constraintStart_toStartOf="parent"
18           app:layout_constraintTop_toTopOf="parent">
19   
20           <LinearLayout
21               android:layout_width="wrap_content"
22               android:layout_height="wrap_content"
23               android:orientation="horizontal"
24               app:layout_constraintEnd_toEndOf="parent"
25               app:layout_constraintStart_toStartOf="parent"
26               app:layout_constraintTop_toTopOf="parent">
27   
28               <ImageView
29                   android:layout_width="40dp"
30                   android:layout_height="40dp"
31                   android:layout_marginTop="16dp"
32                   android:layout_marginRight="8dp"
33                   android:src="@drawable/ic_launcher" />
34   
35               <TextView
36                   android:layout_width="wrap_content"
37                   android:layout_height="wrap_content"
38                   android:layout_marginTop="14dp"
39                   android:text="Chatistics"
40                   android:textSize="32sp" />
41   
42           </LinearLayout>
43   
44       </androidx.constraintlayout.widget.ConstraintLayout>
45   
46   
47       <androidx.constraintlayout.widget.ConstraintLayout
48           android:id="@+id/layout_result"
49           android:layout_width="match_parent"
50           android:layout_height="wrap_content"
51           android:background="@color/colorPrimary"
52           android:layout_marginTop="32dp"
53           app:layout_constraintEnd_toEndOf="parent"
54           app:layout_constraintStart_toStartOf="parent"
55           app:layout_constraintTop_toTopOf="parent">
56   
57           <LinearLayout
58               android:id="@+id/linearLayout"
59               android:layout_width="wrap_content"
60               android:layout_height="wrap_content"
61               android:orientation="horizontal"
62               app:layout_constraintEnd_toEndOf="parent"
63               app:layout_constraintStart_toStartOf="parent"
64               app:layout_constraintTop_toTopOf="parent">
65   
66               <TextView
67                   android:id="@+id/textView2"
68                   android:layout_width="wrap_content"
69                   android:layout_height="wrap_content"
70                   android:textColor="@color/cyan"
71                   android:textSize="48sp" />
72   
73               <TextView
74                   android:id="@+id/plus"
75                   style="@style/Lheading"
76                   android:layout_width="wrap_content"
77                   android:layout_height="wrap_content"
78                   android:fontFamily="@font/chinkala"
79                   android:text="@string/plus"
80                   android:textColor="@color/white" />
81   
82               <TextView
83                   android:id="@+id/textView3"
84                   android:layout_width="wrap_content"
85                   android:layout_height="wrap_content"
86                   android:textColor="@color/pinkie"
87                   android:textSize="48sp" />
88           </LinearLayout>
89   
90           <TextView
91               android:id="@+id/textView9"
92               style="@style/topic"
93               android:layout_width="wrap_content"
94               android:layout_height="wrap_content"
95               android:text="FIRST MESSAGE"
96               app:layout_constraintEnd_toEndOf="@+id/textView4"
97               app:layout_constraintHorizontal_bias="0.455"
98               app:layout_constraintStart_toStartOf="@+id/textView4"
99               app:layout_constraintTop_toBottomOf="@+id/linearLayout" />
100  
101          <TextView
102              android:id="@+id/textView10"
103              style="@style/topic"
104              android:layout_width="wrap_content"
105              android:layout_height="wrap_content"
106              android:text="TOTAL DAYS  "
107              app:layout_constraintEnd_toEndOf="@+id/textView6"
108              app:layout_constraintStart_toStartOf="@+id/textView6"
109              app:layout_constraintTop_toBottomOf="@+id/linearLayout" />
110  
111          <TextView
112              android:id="@+id/textView4"
113              style="@style/Mheading"
114              android:layout_width="wrap_content"
115              android:layout_height="wrap_content"
116              android:layout_marginStart="40dp"
117              android:layout_marginTop="8dp"
118              android:textColor="@color/white"
119              app:layout_constraintStart_toStartOf="parent"
120              app:layout_constraintTop_toBottomOf="@+id/textView9" />
121  
122          <TextView
123              android:id="@+id/textView6"
124              style="@style/Mheading"
125              android:layout_width="wrap_content"
126              android:layout_height="wrap_content"
127              android:layout_marginTop="8dp"
128              android:layout_marginEnd="80dp"
129              android:textColor="@color/white"
130              app:layout_constraintEnd_toEndOf="parent"
131              app:layout_constraintTop_toBottomOf="@+id/textView10" />
132  
133          <TextView
134              android:id="@+id/textView13"
135              style="@style/topic"
136              android:layout_width="wrap_content"
137              android:layout_height="wrap_content"
138              android:layout_marginTop="16dp"
139              android:text="TOTAL MESSAGES"
140              app:layout_constraintEnd_toEndOf="parent"
141              app:layout_constraintHorizontal_bias="0.498"
142              app:layout_constraintStart_toStartOf="parent"
143              app:layout_constraintTop_toBottomOf="@+id/textView6" />
144  
145          <TextView
146              android:id="@+id/textView14"
147              style="@style/Lheading"
148              android:layout_width="wrap_content"
149              android:layout_height="wrap_content"
150              android:layout_marginTop="8dp"
151              android:textColor="@color/white"
152              app:layout_constraintEnd_toEndOf="@+id/textView13"
153              app:layout_constraintStart_toStartOf="@+id/textView13"
154              app:layout_constraintTop_toBottomOf="@+id/textView13" />
155  
156          <TextView
157              android:id="@+id/textView15"
158              style="@style/Lheading"
159              android:layout_width="wrap_content"
160              android:layout_height="wrap_content"
161              android:textColor="@color/cyan"
162              app:layout_constraintEnd_toEndOf="@+id/textView14"
163              app:layout_constraintHorizontal_bias="0.495"
164              app:layout_constraintStart_toStartOf="parent"
165              app:layout_constraintTop_toBottomOf="@+id/textView14" />
166  
167          <TextView
168              android:id="@+id/textView16"
169              style="@style/Lheading"
170              android:layout_width="wrap_content"
171              android:layout_height="wrap_content"
172              android:textColor="@color/pinkie"
173              app:layout_constraintEnd_toEndOf="parent"
174              app:layout_constraintHorizontal_bias="0.52"
175              app:layout_constraintStart_toStartOf="@+id/textView14"
176              app:layout_constraintTop_toBottomOf="@+id/textView14" />
177  
178          <TextView
179              android:id="@+id/textView17"
180              style="@style/Lheading"
181              android:layout_width="wrap_content"
182              android:layout_height="wrap_content"
183              android:textColor="@color/cyan"
184              app:layout_constraintEnd_toEndOf="@+id/textView15"
185              app:layout_constraintStart_toStartOf="@+id/textView15"
186              app:layout_constraintTop_toBottomOf="@+id/textView15" />
187  
188          <TextView
189              android:id="@+id/textView18"
190              style="@style/Lheading"
191              android:layout_width="wrap_content"
192              android:layout_height="wrap_content"
193              android:textColor="@color/pinkie"
194              app:layout_constraintEnd_toEndOf="@+id/textView16"
195              app:layout_constraintStart_toStartOf="@+id/textView16"
196              app:layout_constraintTop_toBottomOf="@+id/textView16" />
197  
198          <TextView
199              android:id="@+id/textView19"
200              style="@style/topic"
201              android:layout_width="wrap_content"
202              android:layout_height="wrap_content"
203              android:layout_marginTop="84dp"
204              android:text="RATIO"
205              app:layout_constraintEnd_toStartOf="@+id/textView18"
206              app:layout_constraintStart_toEndOf="@+id/textView17"
207              app:layout_constraintTop_toBottomOf="@+id/textView14" />
208  
209          <LinearLayout
210              android:id="@+id/linearLayout2"
211              android:layout_width="wrap_content"
212              android:layout_height="wrap_content"
213              android:orientation="horizontal"
214              app:layout_constraintEnd_toEndOf="@+id/textView19"
215              app:layout_constraintStart_toStartOf="@+id/textView19"
216              app:layout_constraintTop_toBottomOf="@+id/textView19">
217  
218              <TextView
219                  android:id="@+id/textView20"
220                  android:layout_width="wrap_content"
221                  android:layout_height="wrap_content"
222                  android:textColor="@color/cyan"
223                  android:textSize="32sp" />
224  
225              <TextView
226                  android:id="@+id/textView22"
227                  style="@style/Lheading"
228                  android:layout_width="wrap_content"
229                  android:layout_height="wrap_content"
230                  android:fontFamily="@font/chinkala"
231                  android:text=":"
232                  android:textColor="@color/white" />
233  
234              <TextView
235                  android:id="@+id/textView21"
236                  android:layout_width="wrap_content"
237                  android:layout_height="wrap_content"
238                  android:textColor="@color/pinkie"
239                  android:textSize="32sp" />
240          </LinearLayout>
241  
242          <lecho.lib.hellocharts.view.PieChartView
243              android:id="@+id/chart1"
244              android:layout_width="160dp"
245              android:layout_height="160dp"
246              android:layout_marginStart="16dp"
247              app:layout_constraintStart_toStartOf="parent"
248              app:layout_constraintTop_toBottomOf="@+id/textView47" />
249  
250          <lecho.lib.hellocharts.view.PieChartView
251              android:id="@+id/chart2"
252              android:layout_width="160dp"
253              android:layout_height="160dp"
254              android:layout_marginEnd="16dp"
255              app:layout_constraintEnd_toEndOf="parent"
256              app:layout_constraintTop_toBottomOf="@+id/textView47" />
257  
258          <TextView
259              android:id="@+id/textView47"
260              style="@style/topic"
261              android:layout_width="wrap_content"
262              android:layout_height="wrap_content"
263              android:layout_marginTop="8dp"
264              android:text="PER PERSON"
265              app:layout_constraintEnd_toEndOf="parent"
266              app:layout_constraintHorizontal_bias="0.503"
267              app:layout_constraintStart_toStartOf="parent"
268              app:layout_constraintTop_toBottomOf="@+id/linearLayout2" />
269  
270          <TextView
271              android:id="@+id/textView25"
272              style="@style/topic"
273              android:layout_width="wrap_content"
274              android:layout_height="wrap_content"
275              android:text="MESSAGES"
276              app:layout_constraintEnd_toEndOf="@+id/chart1"
277              app:layout_constraintStart_toStartOf="@+id/chart1"
278              app:layout_constraintTop_toBottomOf="@+id/chart1" />
279  
280          <TextView
281              android:id="@+id/textView26"
282              style="@style/topic"
283              android:layout_width="wrap_content"
284              android:layout_height="wrap_content"
285              android:text="WORDS"
286              app:layout_constraintEnd_toEndOf="@+id/chart2"
287              app:layout_constraintStart_toStartOf="@+id/chart2"
288              app:layout_constraintTop_toBottomOf="@+id/chart2" />
289  
290      </androidx.constraintlayout.widget.ConstraintLayout>
291  
292      <ProgressBar
293          style="@style/Widget.AppCompat.ProgressBar.Horizontal"
294          android:layout_width="match_parent"
295          android:layout_height="wrap_content"
296          android:indeterminate="true"
297          android:id="@+id/more_progress_bar"
298          app:layout_constraintBottom_toBottomOf="@+id/linearLayout3"
299          app:layout_constraintEnd_toEndOf="parent"
300          android:layout_margin="128dp"
301          app:layout_constraintStart_toStartOf="parent"
302          app:layout_constraintTop_toTopOf="@+id/linearLayout3" />
303  
304      <LinearLayout
305          android:id="@+id/linearLayout3"
306          android:layout_width="wrap_content"
307          android:layout_height="wrap_content"
308          android:layout_marginBottom="16dp"
309          android:onClick="moreInfo"
310          android:orientation="horizontal"
311          android:visibility="invisible"
312          app:layout_constraintBottom_toBottomOf="parent"
313          app:layout_constraintEnd_toEndOf="parent"
314          app:layout_constraintStart_toStartOf="parent">
315  
316          <TextView
317              android:id="@+id/textView27"
318              android:layout_width="wrap_content"
319              android:layout_height="wrap_content"
320              android:layout_weight="1"
321              android:background="@color/cyan"
322              android:padding="4dp"
323              android:text="MO"
324              android:textSize="32sp" />
325  
326          <TextView
327              android:id="@+id/textView28"
328              android:layout_width="wrap_content"
329              android:layout_height="wrap_content"
330              android:layout_weight="1"
331              android:background="@color/pinkie"
332              android:padding="4dp"
333              android:text="RE"
334              android:textSize="32sp" />
335      </LinearLayout>
336  
337      <TextView
338          android:layout_width="wrap_content"
339          android:layout_height="wrap_content"
340          android:layout_marginRight="8dp"
341          android:text="Share ->"
342          android:textColor="@color/white"
343          android:textSize="16sp"
344          android:visibility="gone"
345          app:layout_constraintBottom_toBottomOf="@+id/share_button"
346          app:layout_constraintEnd_toStartOf="@+id/share_button"
347          app:layout_constraintTop_toTopOf="@+id/more_progress_bar" />
348  
349      <ImageView
350          android:id="@+id/share_button"
351          android:layout_width="40dp"
352          android:layout_height="40dp"
353          android:layout_marginEnd="32dp"
354          android:onClick="shareEasier"
355          android:src="@drawable/share"
356          android:visibility="invisible"
357          app:layout_constraintBottom_toBottomOf="@+id/linearLayout3"
358          app:layout_constraintEnd_toEndOf="parent"
359          app:layout_constraintTop_toTopOf="@+id/linearLayout3" />
360  
361      <ImageView
362          android:id="@+id/imageView"
363          android:layout_width="32dp"
364          android:layout_height="32dp"
365          android:layout_margin="16dp"
366          android:onClick="backToHome"
367          android:src="@drawable/back"
368          app:layout_constraintStart_toStartOf="parent"
369          app:layout_constraintTop_toTopOf="parent" />
370  
371      <ProgressBar
372          android:layout_width="wrap_content"
373          android:layout_height="wrap_content"
374          android:id="@+id/share_button_progress_bar"
375          app:layout_constraintBottom_toBottomOf="@+id/share_button"
376          app:layout_constraintEnd_toEndOf="@+id/share_button"
377          app:layout_constraintStart_toStartOf="@+id/share_button"
378          app:layout_constraintTop_toTopOf="@+id/share_button" />
379  
380  
381      <androidx.constraintlayout.widget.ConstraintLayout
382          android:layout_width="match_parent"
383          android:layout_height="match_parent"
384          android:background="@color/colorPrimary"
385          app:layout_constraintBottom_toBottomOf="parent"
386          app:layout_constraintEnd_toEndOf="parent"
387          app:layout_constraintStart_toStartOf="parent"
388          app:layout_constraintTop_toTopOf="parent"
389          android:id="@+id/loading">
390  
391          <LinearLayout
392              android:layout_width="wrap_content"
393              android:layout_height="wrap_content"
394              android:orientation="vertical"
395              app:layout_constraintBottom_toBottomOf="parent"
396              app:layout_constraintEnd_toEndOf="parent"
397              app:layout_constraintStart_toStartOf="parent"
398              app:layout_constraintTop_toTopOf="parent">
399  
400              <ImageView
401                  android:layout_width="match_parent"
402                  android:layout_height="wrap_content"
403                  android:src="@mipmap/ic_launcher">
404  
405              </ImageView>
406  
407              <TextView
408                  style="@style/Lheading"
409                  android:layout_width="wrap_content"
410                  android:layout_height="wrap_content"
411                  android:layout_marginTop="8dp"
412                  android:text="Chatistics"
413                  android:textColor="@color/white">
414  
415              </TextView>
416  
417              <ProgressBar
418                  android:layout_width="match_parent"
419                  android:layout_height="wrap_content"
420                  android:indeterminate="true"
421                  style="@style/Widget.AppCompat.ProgressBar.Horizontal">
422              </ProgressBar>
423  
424  
425          </LinearLayout>
426  
427      </androidx.constraintlayout.widget.ConstraintLayout>
428  
429  
430  
431  
432  
433  
434  </androidx.constraintlayout.widget.ConstraintLayout>
435