activity_group.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:layout_height="match_parent"
7        android:background="@color/colorPrimary">
8    
9        <androidx.constraintlayout.widget.ConstraintLayout
10           android:layout_width="match_parent"
11           android:layout_height="wrap_content"
12           android:id="@+id/title_bar"
13           android:visibility="invisible"
14           android:background="@color/colorPrimary"
15           app:layout_constraintEnd_toEndOf="parent"
16           app:layout_constraintStart_toStartOf="parent"
17           app:layout_constraintTop_toTopOf="parent">
18   
19           <LinearLayout
20               android:layout_width="wrap_content"
21               android:layout_height="wrap_content"
22               android:orientation="horizontal"
23               app:layout_constraintEnd_toEndOf="parent"
24               app:layout_constraintStart_toStartOf="parent"
25               app:layout_constraintTop_toTopOf="parent">
26   
27               <ImageView
28                   android:layout_width="40dp"
29                   android:layout_height="40dp"
30                   android:layout_marginTop="16dp"
31                   android:layout_marginEnd="8dp"
32                   android:src="@drawable/ic_launcher" />
33   
34               <TextView
35                   android:layout_width="wrap_content"
36                   android:layout_height="wrap_content"
37                   android:layout_marginTop="14dp"
38                   android:text="Chatistics"
39                   android:textSize="32sp" />
40   
41           </LinearLayout>
42   
43       </androidx.constraintlayout.widget.ConstraintLayout>
44   
45       <androidx.constraintlayout.widget.ConstraintLayout
46           android:id="@+id/group"
47           android:layout_width="wrap_content"
48           android:layout_marginTop="32dp"
49           android:background="@color/colorPrimary"
50           android:layout_height="wrap_content"
51           app:layout_constraintEnd_toEndOf="parent"
52           app:layout_constraintTop_toTopOf="parent">
53   
54   
55           <TextView
56               android:id="@+id/textView48"
57               android:layout_width="wrap_content"
58               android:layout_height="wrap_content"
59               android:text="Error"
60               android:textAlignment="center"
61               android:textColor="@color/white"
62               android:textSize="48sp"
63               app:layout_constraintEnd_toEndOf="parent"
64               app:layout_constraintStart_toStartOf="parent"
65               app:layout_constraintTop_toTopOf="parent"
66               tools:text="Group Name" />
67   
68           <TextView
69               android:id="@+id/textView49"
70               style="@style/topic"
71               android:layout_width="wrap_content"
72               android:layout_height="wrap_content"
73               android:layout_marginTop="20dp"
74               android:text="ACTIVE MEMBERS"
75               app:layout_constraintEnd_toEndOf="parent"
76               app:layout_constraintHorizontal_bias="0.193"
77               app:layout_constraintStart_toStartOf="parent"
78               app:layout_constraintTop_toBottomOf="@+id/textView102" />
79   
80           <TextView
81               android:id="@+id/textView51"
82               style="@style/topic"
83               android:layout_width="wrap_content"
84               android:layout_height="wrap_content"
85               android:text="TOTAL MESSAGES"
86               app:layout_constraintEnd_toEndOf="parent"
87               app:layout_constraintHorizontal_bias="0.83"
88               app:layout_constraintStart_toStartOf="parent"
89               app:layout_constraintTop_toTopOf="@+id/textView49" />
90   
91           <TextView
92               android:id="@+id/textView59"
93               style="@style/Mheading"
94               android:layout_width="wrap_content"
95               android:layout_height="wrap_content"
96               android:text="5"
97               android:textColor="@color/Lred"
98               app:layout_constraintEnd_toEndOf="@+id/textView49"
99               app:layout_constraintStart_toStartOf="@+id/textView49"
100              app:layout_constraintTop_toBottomOf="@+id/textView49" />
101  
102          <TextView
103              android:id="@+id/textView95"
104              style="@style/Mheading"
105              android:layout_width="wrap_content"
106              android:layout_height="wrap_content"
107              android:text="3184"
108              android:textColor="@color/Lorange"
109              app:layout_constraintEnd_toEndOf="@+id/textView51"
110              app:layout_constraintStart_toStartOf="@+id/textView51"
111              app:layout_constraintTop_toBottomOf="@+id/textView51"
112              tools:text="3184" />
113  
114          <TextView
115              android:id="@+id/textView96"
116              style="@style/topic"
117              android:layout_width="wrap_content"
118              android:layout_height="wrap_content"
119              android:layout_marginTop="20dp"
120              android:text="MESSAGES PER DAY"
121              app:layout_constraintEnd_toEndOf="parent"
122              app:layout_constraintStart_toStartOf="parent"
123              app:layout_constraintTop_toBottomOf="@+id/textView95" />
124  
125          <TextView
126              android:id="@+id/textView97"
127              style="@style/topic"
128              android:layout_width="wrap_content"
129              android:layout_height="wrap_content"
130              android:text="CREATED ON"
131              app:layout_constraintEnd_toEndOf="@+id/textView49"
132              app:layout_constraintStart_toStartOf="@+id/textView49"
133              app:layout_constraintTop_toTopOf="@+id/textView98" />
134  
135          <TextView
136              android:id="@+id/textView98"
137              style="@style/topic"
138              android:layout_width="wrap_content"
139              android:layout_height="wrap_content"
140              android:layout_marginTop="20dp"
141              android:text="CREATED BY"
142              app:layout_constraintEnd_toEndOf="@+id/textView51"
143              app:layout_constraintHorizontal_bias="0.93"
144              app:layout_constraintStart_toStartOf="@+id/textView51"
145              app:layout_constraintTop_toBottomOf="@+id/textView103" />
146  
147          <TextView
148              android:id="@+id/textView99"
149              style="@style/Mheading"
150              android:layout_width="wrap_content"
151              android:layout_height="wrap_content"
152              android:text="3rd March 2017"
153              android:textColor="@color/Lyellow"
154              app:layout_constraintBottom_toBottomOf="@+id/textView100"
155              app:layout_constraintEnd_toEndOf="@+id/textView97"
156              app:layout_constraintStart_toStartOf="@+id/textView97" />
157  
158          <TextView
159              android:id="@+id/textView100"
160              style="@style/Mheading"
161              android:layout_width="wrap_content"
162              android:layout_height="wrap_content"
163              android:text="Nintendo"
164              android:textColor="@color/Lgreen"
165              app:layout_constraintEnd_toEndOf="@+id/textView98"
166              app:layout_constraintStart_toStartOf="@+id/textView98"
167              app:layout_constraintTop_toBottomOf="@+id/textView98" />
168  
169          <TextView
170              android:id="@+id/textView101"
171              style="@style/topic"
172              android:layout_width="wrap_content"
173              android:layout_height="wrap_content"
174              android:layout_marginTop="24dp"
175              android:text="ORIGINAL NAME"
176              android:visibility="gone"
177              app:layout_constraintEnd_toEndOf="parent"
178              app:layout_constraintHorizontal_bias="0.498"
179              app:layout_constraintStart_toStartOf="parent"
180              app:layout_constraintTop_toBottomOf="@+id/textView48" />
181  
182          <lecho.lib.hellocharts.view.ColumnChartView
183              android:id="@+id/columnChartView"
184              android:layout_width="wrap_content"
185              android:layout_height="300dp"
186              android:layout_marginTop="40dp"
187              app:layout_constraintBottom_toBottomOf="parent"
188              app:layout_constraintEnd_toEndOf="parent"
189              app:layout_constraintHorizontal_bias="0.0"
190              app:layout_constraintStart_toStartOf="parent"
191              app:layout_constraintTop_toBottomOf="@+id/textView99"
192              app:layout_constraintVertical_bias="0.315">
193  
194          </lecho.lib.hellocharts.view.ColumnChartView>
195  
196          <TextView
197              android:id="@+id/textView102"
198              android:layout_width="wrap_content"
199              android:layout_height="wrap_content"
200              android:text="Not toda7"
201              android:visibility="gone"
202              app:layout_constraintEnd_toEndOf="@+id/textView101"
203              app:layout_constraintStart_toStartOf="@+id/textView101"
204              app:layout_constraintTop_toBottomOf="@+id/textView101" />
205  
206          <TextView
207              android:id="@+id/textView103"
208              style="@style/Mheading"
209              android:layout_width="wrap_content"
210              android:layout_height="wrap_content"
211              android:text="23.5"
212              android:textColor="@color/Lblue"
213              app:layout_constraintEnd_toEndOf="@+id/textView96"
214              app:layout_constraintHorizontal_bias="0.494"
215              app:layout_constraintStart_toStartOf="@+id/textView96"
216              app:layout_constraintTop_toBottomOf="@+id/textView96"
217              tools:text="3.5" />
218  
219          <LinearLayout
220              android:layout_width="wrap_content"
221              android:layout_height="wrap_content"
222              android:layout_marginTop="0dp"
223              android:layout_marginRight="48dp"
224              android:orientation="vertical"
225              app:layout_constraintEnd_toEndOf="@+id/columnChartView"
226              app:layout_constraintTop_toTopOf="@+id/columnChartView">
227  
228              <LinearLayout
229                  android:layout_width="match_parent"
230                  android:layout_height="wrap_content"
231                  android:orientation="horizontal">
232  
233                  <TextView
234                      android:layout_width="12dp"
235                      android:layout_height="12dp"
236                      android:layout_gravity="center"
237                      android:id="@+id/legend1"
238                      android:background="@color/Lred"/>
239                  <TextView
240                      android:id="@+id/key1"
241                      android:layout_width="wrap_content"
242                      android:layout_height="wrap_content"
243                      android:text=" Dhruv"
244                      android:shadowColor="#000000"
245                      android:shadowDx="1.5"
246                      android:shadowDy="1.3"
247                      android:shadowRadius="1.6"
248                      android:layout_gravity="center"
249                      android:textColor="@color/Lred" />
250  
251              </LinearLayout>
252  
253  
254  
255              <LinearLayout
256                  android:layout_width="match_parent"
257                  android:layout_height="wrap_content"
258                  android:orientation="horizontal">
259  
260                  <TextView
261                      android:layout_width="12dp"
262                      android:layout_height="12dp"
263                      android:id="@+id/legend2"
264                      android:layout_gravity="center"
265                      android:background="@color/Lorange"/>
266                  <TextView
267                      android:id="@+id/key2"
268                      android:layout_width="wrap_content"
269                      android:layout_height="wrap_content"
270                      android:text=" Apoorvam"
271                      android:shadowColor="#000000"
272                      android:shadowDx="1.5"
273                      android:shadowDy="1.3"
274                      android:shadowRadius="1.6"
275                      android:layout_gravity="center"
276                      android:textColor="@color/Lorange" />
277  
278              </LinearLayout><LinearLayout
279              android:layout_width="match_parent"
280              android:layout_height="wrap_content"
281              android:orientation="horizontal">
282  
283              <TextView
284                  android:layout_width="12dp"
285                  android:layout_height="12dp"
286                  android:layout_gravity="center"
287                  android:id="@+id/legend3"
288                  android:background="@color/Lblue"/>
289              <TextView
290                  android:id="@+id/key3"
291                  android:layout_width="wrap_content"
292                  android:layout_height="wrap_content"
293                  android:text=" Apra"
294                  android:shadowColor="#000000"
295                  android:shadowDx="1.5"
296                  android:shadowDy="1.3"
297                  android:shadowRadius="1.6"
298                  android:layout_gravity="center"
299                  android:textColor="@color/Lblue" />
300  
301          </LinearLayout><LinearLayout
302              android:layout_width="match_parent"
303              android:layout_height="wrap_content"
304              android:orientation="horizontal">
305  
306              <TextView
307                  android:layout_width="12dp"
308                  android:layout_height="12dp"
309                  android:id="@+id/legend4"
310                  android:layout_gravity="center"
311                  android:background="@color/Lyellow"/>
312              <TextView
313                  android:id="@+id/key4"
314                  android:layout_width="wrap_content"
315                  android:layout_height="wrap_content"
316                  android:text=" Dhruv"
317                  android:shadowColor="#000000"
318                  android:shadowDx="1.5"
319                  android:shadowDy="1.3"
320                  android:shadowRadius="1.6"
321                  android:layout_gravity="center"
322                  android:textColor="@color/Lyellow" />
323  
324          </LinearLayout><LinearLayout
325              android:layout_width="match_parent"
326              android:layout_height="wrap_content"
327              android:orientation="horizontal">
328  
329              <TextView
330                  android:layout_width="12dp"
331                  android:layout_height="12dp"
332                  android:id="@+id/legend5"
333                  android:layout_gravity="center"
334                  android:background="@color/Lgreen"/>
335              <TextView
336                  android:id="@+id/key5"
337                  android:layout_width="wrap_content"
338                  android:layout_height="wrap_content"
339                  android:text=" Dhruv"
340                  android:shadowColor="#000000"
341                  android:shadowDx="1.5"
342                  android:shadowDy="1.3"
343                  android:shadowRadius="1.6"
344                  android:layout_gravity="center"
345                  android:textColor="@color/Lgreen" />
346  
347          </LinearLayout>
348  
349  
350          </LinearLayout>
351  
352  
353  
354      </androidx.constraintlayout.widget.ConstraintLayout>
355  
356  
357      <ImageView
358          android:layout_width="27dp"
359          android:layout_height="31dp"
360          android:layout_margin="16dp"
361          android:onClick="shareGroup"
362          android:src="@drawable/share"
363          app:layout_constraintEnd_toEndOf="parent"
364          app:layout_constraintTop_toTopOf="parent" />
365  </androidx.constraintlayout.widget.ConstraintLayout>