1 |
efrain |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
3 |
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
4 |
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
5 |
xmlns:tools="http://schemas.android.com/tools"
|
|
|
6 |
android:layout_width="match_parent"
|
|
|
7 |
android:layout_height="match_parent"
|
|
|
8 |
android:background="@color/cardviewBackground"
|
|
|
9 |
tools:context=".fragment.ProgressFragment">
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
<TextView
|
|
|
13 |
android:id="@+id/fragment_progress_textview_progress"
|
|
|
14 |
style="@style/textview_title1"
|
|
|
15 |
android:layout_width="0dp"
|
|
|
16 |
android:layout_height="wrap_content"
|
|
|
17 |
android:paddingLeft="20dp"
|
|
|
18 |
android:layout_marginTop="20dp"
|
|
|
19 |
android:text="@string/progress_title"
|
|
|
20 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
21 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
22 |
app:layout_constraintTop_toTopOf="parent" />
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
<com.github.mikephil.charting.charts.PieChart
|
|
|
26 |
android:id="@+id/fragment_progress_chart_progress"
|
|
|
27 |
android:layout_width="match_parent"
|
|
|
28 |
android:layout_height="0dp"
|
|
|
29 |
app:layout_constraintHeight_percent="0.3"
|
|
|
30 |
app:layout_constraintTop_toBottomOf="@id/fragment_progress_textview_progress"
|
|
|
31 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
32 |
app:layout_constraintStart_toStartOf="parent" />
|
|
|
33 |
|
|
|
34 |
<TextView
|
|
|
35 |
android:id="@+id/fragment_progress_textview_status"
|
|
|
36 |
style="@style/textview_title1"
|
|
|
37 |
android:layout_width="wrap_content"
|
|
|
38 |
android:layout_height="wrap_content"
|
|
|
39 |
android:text="@string/progress_topics_status"
|
|
|
40 |
android:layout_marginTop="10dp"
|
|
|
41 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
42 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
43 |
app:layout_constraintTop_toBottomOf="@id/fragment_progress_chart_progress" />
|
|
|
44 |
|
|
|
45 |
<TableLayout
|
|
|
46 |
android:id="@+id/fragment_progress_tablelayout_status"
|
|
|
47 |
android:layout_width="match_parent"
|
|
|
48 |
android:layout_height="wrap_content"
|
|
|
49 |
android:layout_marginTop="5dp"
|
|
|
50 |
android:stretchColumns="*"
|
|
|
51 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
52 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
53 |
app:layout_constraintTop_toBottomOf="@id/fragment_progress_textview_status">
|
|
|
54 |
|
|
|
55 |
<TableRow>
|
|
|
56 |
<TextView
|
|
|
57 |
android:id="@+id/fragment_progress_textview_status_total"
|
|
|
58 |
style="@style/textview_progress_status_values"
|
|
|
59 |
android:layout_width="wrap_content"
|
|
|
60 |
android:layout_height="wrap_content"
|
|
|
61 |
android:gravity="center"
|
|
|
62 |
android:padding="3dip"
|
|
|
63 |
android:text="0" />
|
|
|
64 |
|
|
|
65 |
<TextView
|
|
|
66 |
android:id="@+id/fragment_progress_textview_status_total_started"
|
|
|
67 |
style="@style/textview_progress_status_values"
|
|
|
68 |
android:layout_width="wrap_content"
|
|
|
69 |
android:layout_height="wrap_content"
|
|
|
70 |
android:gravity="center"
|
|
|
71 |
android:padding="3dip"
|
|
|
72 |
android:text="0" />
|
|
|
73 |
|
|
|
74 |
<TextView
|
|
|
75 |
android:id="@+id/fragment_progress_textview_status_total_for_start"
|
|
|
76 |
style="@style/textview_progress_status_values"
|
|
|
77 |
android:layout_width="wrap_content"
|
|
|
78 |
android:layout_height="wrap_content"
|
|
|
79 |
android:gravity="center"
|
|
|
80 |
android:padding="3dip"
|
|
|
81 |
android:text="0" />
|
|
|
82 |
|
|
|
83 |
<TextView
|
|
|
84 |
android:id="@+id/fragment_progress_textview_status_total_completed"
|
|
|
85 |
style="@style/textview_progress_status_values"
|
|
|
86 |
android:layout_width="wrap_content"
|
|
|
87 |
android:layout_height="wrap_content"
|
|
|
88 |
android:gravity="center"
|
|
|
89 |
android:padding="3dip"
|
|
|
90 |
android:text="0" />
|
|
|
91 |
</TableRow>
|
|
|
92 |
|
|
|
93 |
<TableRow>
|
|
|
94 |
<TextView
|
|
|
95 |
style="@style/textview_progress_status_label"
|
|
|
96 |
android:layout_width="wrap_content"
|
|
|
97 |
android:layout_height="wrap_content"
|
|
|
98 |
android:gravity="center"
|
|
|
99 |
android:padding="3dip"
|
|
|
100 |
android:text="@string/progress_topics_total" />
|
|
|
101 |
|
|
|
102 |
<TextView
|
|
|
103 |
style="@style/textview_progress_status_label"
|
|
|
104 |
android:layout_width="wrap_content"
|
|
|
105 |
android:layout_height="wrap_content"
|
|
|
106 |
android:gravity="center"
|
|
|
107 |
android:padding="3dip"
|
|
|
108 |
android:text="@string/progress_topics_started" />
|
|
|
109 |
|
|
|
110 |
<TextView
|
|
|
111 |
style="@style/textview_progress_status_label"
|
|
|
112 |
android:layout_width="wrap_content"
|
|
|
113 |
android:layout_height="wrap_content"
|
|
|
114 |
android:gravity="center"
|
|
|
115 |
android:padding="3dip"
|
|
|
116 |
android:text="@string/progress_topics_for_start" />
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
<TextView
|
|
|
120 |
style="@style/textview_progress_status_label"
|
|
|
121 |
android:layout_width="wrap_content"
|
|
|
122 |
android:layout_height="wrap_content"
|
|
|
123 |
android:gravity="center"
|
|
|
124 |
android:padding="3dip"
|
|
|
125 |
android:text="@string/progress_topics_completed" />
|
|
|
126 |
</TableRow>
|
|
|
127 |
</TableLayout>
|
|
|
128 |
|
|
|
129 |
<TextView
|
|
|
130 |
android:id="@+id/fragment_progress_textview_returning"
|
|
|
131 |
style="@style/textview_title1"
|
|
|
132 |
android:layout_width="0dp"
|
|
|
133 |
android:layout_height="wrap_content"
|
|
|
134 |
android:text="@string/returning_title"
|
|
|
135 |
android:paddingLeft="20dp"
|
|
|
136 |
android:layout_marginTop="10dp"
|
|
|
137 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
138 |
app:layout_constraintStart_toStartOf="parent"
|
|
|
139 |
app:layout_constraintTop_toBottomOf="@id/fragment_progress_tablelayout_status" />
|
|
|
140 |
|
|
|
141 |
<com.github.mikephil.charting.charts.PieChart
|
|
|
142 |
android:id="@+id/fragment_progress_chart_returning"
|
|
|
143 |
android:layout_width="match_parent"
|
|
|
144 |
android:layout_height="0dp"
|
|
|
145 |
app:layout_constraintHeight_percent="0.3"
|
|
|
146 |
app:layout_constraintTop_toBottomOf="@id/fragment_progress_textview_returning"
|
|
|
147 |
app:layout_constraintEnd_toEndOf="parent"
|
|
|
148 |
app:layout_constraintStart_toStartOf="parent" />
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
152 |
|
|
|
153 |
|