Showing
4 changed files
with
197 additions
and
0 deletions
13.6 KB
... | @@ -50,6 +50,7 @@ | ... | @@ -50,6 +50,7 @@ |
50 | android:layout_height="match_parent" | 50 | android:layout_height="match_parent" |
51 | android:background="@drawable/shape_cos_loyalty" | 51 | android:background="@drawable/shape_cos_loyalty" |
52 | android:paddingBottom="48dp" | 52 | android:paddingBottom="48dp" |
53 | + app:layout_constraintBottom_toBottomOf="parent" | ||
53 | app:layout_constraintEnd_toEndOf="parent" | 54 | app:layout_constraintEnd_toEndOf="parent" |
54 | app:layout_constraintStart_toStartOf="parent" | 55 | app:layout_constraintStart_toStartOf="parent" |
55 | app:layout_constraintTop_toTopOf="parent"> | 56 | app:layout_constraintTop_toTopOf="parent"> |
... | @@ -195,6 +196,31 @@ | ... | @@ -195,6 +196,31 @@ |
195 | android:popupBackground="@drawable/shape_cos_sky_blue" | 196 | android:popupBackground="@drawable/shape_cos_sky_blue" |
196 | android:popupElevation="1dp" | 197 | android:popupElevation="1dp" |
197 | android:spinnerMode="dropdown" /> | 198 | android:spinnerMode="dropdown" /> |
199 | + | ||
200 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
201 | + android:layout_width="match_parent" | ||
202 | + android:layout_height="wrap_content" | ||
203 | + android:layout_below="@+id/sp_redemption" | ||
204 | + android:layout_marginTop="32dp"> | ||
205 | + | ||
206 | + <include | ||
207 | + android:id="@+id/cl_chart" | ||
208 | + layout="@layout/cos_piechart" | ||
209 | + android:layout_width="200dp" | ||
210 | + android:layout_height="200dp" | ||
211 | + app:layout_constraintEnd_toEndOf="parent" | ||
212 | + app:layout_constraintStart_toStartOf="parent" | ||
213 | + app:layout_constraintTop_toTopOf="parent" /> | ||
214 | + | ||
215 | + <include | ||
216 | + layout="@layout/cos_analysis" | ||
217 | + android:layout_width="match_parent" | ||
218 | + android:layout_height="wrap_content" | ||
219 | + android:layout_marginTop="32dp" | ||
220 | + app:layout_constraintEnd_toEndOf="@+id/cl_chart" | ||
221 | + app:layout_constraintStart_toStartOf="parent" | ||
222 | + app:layout_constraintTop_toBottomOf="@+id/cl_chart" /> | ||
223 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
198 | </RelativeLayout> | 224 | </RelativeLayout> |
199 | </RelativeLayout> | 225 | </RelativeLayout> |
200 | 226 | ... | ... |
1 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | + xmlns:app="http://schemas.android.com/apk/res-auto" | ||
3 | + android:layout_width="match_parent" | ||
4 | + android:layout_height="wrap_content" | ||
5 | + android:gravity="center_horizontal" | ||
6 | + android:orientation="vertical"> | ||
7 | + | ||
8 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
9 | + android:layout_width="match_parent" | ||
10 | + android:layout_height="wrap_content"> | ||
11 | + | ||
12 | + <ImageView | ||
13 | + android:id="@+id/iv_chart_icon1" | ||
14 | + android:layout_width="24dp" | ||
15 | + android:layout_height="24dp" | ||
16 | + android:src="@drawable/ic_smile" | ||
17 | + app:layout_constraintBottom_toBottomOf="parent" | ||
18 | + app:layout_constraintStart_toStartOf="parent" | ||
19 | + app:layout_constraintTop_toTopOf="parent" /> | ||
20 | + | ||
21 | + <TextView | ||
22 | + android:layout_width="wrap_content" | ||
23 | + android:layout_height="wrap_content" | ||
24 | + android:layout_marginStart="16dp" | ||
25 | + android:text="Διασκέδαση" | ||
26 | + android:textColor="#4D4C58" | ||
27 | + android:textSize="15sp" | ||
28 | + android:textStyle="bold" | ||
29 | + app:layout_constraintBottom_toBottomOf="parent" | ||
30 | + app:layout_constraintStart_toEndOf="@+id/iv_chart_icon1" | ||
31 | + app:layout_constraintTop_toTopOf="parent" /> | ||
32 | + | ||
33 | + <TextView | ||
34 | + android:layout_width="wrap_content" | ||
35 | + android:layout_height="wrap_content" | ||
36 | + android:text="60%" | ||
37 | + android:textColor="#00CB09" | ||
38 | + android:textSize="17sp" | ||
39 | + android:textStyle="bold" | ||
40 | + app:layout_constraintBottom_toBottomOf="parent" | ||
41 | + app:layout_constraintEnd_toEndOf="parent" | ||
42 | + app:layout_constraintTop_toTopOf="parent" /> | ||
43 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
44 | + | ||
45 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
46 | + android:layout_width="match_parent" | ||
47 | + android:layout_height="wrap_content" | ||
48 | + android:layout_marginVertical="20dp"> | ||
49 | + | ||
50 | + <ImageView | ||
51 | + android:id="@+id/iv_chart_icon2" | ||
52 | + android:layout_width="24dp" | ||
53 | + android:layout_height="24dp" | ||
54 | + android:src="@drawable/ic_cart" | ||
55 | + app:layout_constraintBottom_toBottomOf="parent" | ||
56 | + app:layout_constraintStart_toStartOf="parent" | ||
57 | + app:layout_constraintTop_toTopOf="parent" /> | ||
58 | + | ||
59 | + <TextView | ||
60 | + android:layout_width="wrap_content" | ||
61 | + android:layout_height="wrap_content" | ||
62 | + android:layout_marginStart="16dp" | ||
63 | + android:text="Supermarket" | ||
64 | + android:textColor="#4D4C58" | ||
65 | + android:textSize="15sp" | ||
66 | + android:textStyle="bold" | ||
67 | + app:layout_constraintBottom_toBottomOf="parent" | ||
68 | + app:layout_constraintStart_toEndOf="@+id/iv_chart_icon2" | ||
69 | + app:layout_constraintTop_toTopOf="parent" /> | ||
70 | + | ||
71 | + <TextView | ||
72 | + android:layout_width="wrap_content" | ||
73 | + android:layout_height="wrap_content" | ||
74 | + android:text="22%" | ||
75 | + android:textColor="#9973F3" | ||
76 | + android:textSize="17sp" | ||
77 | + android:textStyle="bold" | ||
78 | + app:layout_constraintBottom_toBottomOf="parent" | ||
79 | + app:layout_constraintEnd_toEndOf="parent" | ||
80 | + app:layout_constraintTop_toTopOf="parent" /> | ||
81 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
82 | + | ||
83 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
84 | + android:layout_width="match_parent" | ||
85 | + android:layout_height="wrap_content"> | ||
86 | + | ||
87 | + <ImageView | ||
88 | + android:id="@+id/iv_chart_icon3" | ||
89 | + android:layout_width="24dp" | ||
90 | + android:layout_height="24dp" | ||
91 | + android:src="@drawable/ic_plane" | ||
92 | + app:layout_constraintBottom_toBottomOf="parent" | ||
93 | + app:layout_constraintStart_toStartOf="parent" | ||
94 | + app:layout_constraintTop_toTopOf="parent" /> | ||
95 | + | ||
96 | + <TextView | ||
97 | + android:layout_width="wrap_content" | ||
98 | + android:layout_height="wrap_content" | ||
99 | + android:layout_marginStart="16dp" | ||
100 | + android:text="Ταξίδια" | ||
101 | + android:textColor="#4D4C58" | ||
102 | + android:textSize="15sp" | ||
103 | + android:textStyle="bold" | ||
104 | + app:layout_constraintBottom_toBottomOf="parent" | ||
105 | + app:layout_constraintStart_toEndOf="@+id/iv_chart_icon3" | ||
106 | + app:layout_constraintTop_toTopOf="parent" /> | ||
107 | + | ||
108 | + <TextView | ||
109 | + android:layout_width="wrap_content" | ||
110 | + android:layout_height="wrap_content" | ||
111 | + android:text="18%" | ||
112 | + android:textColor="#0072C9" | ||
113 | + android:textSize="17sp" | ||
114 | + android:textStyle="bold" | ||
115 | + app:layout_constraintBottom_toBottomOf="parent" | ||
116 | + app:layout_constraintEnd_toEndOf="parent" | ||
117 | + app:layout_constraintTop_toTopOf="parent" /> | ||
118 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
119 | + | ||
120 | + <TextView | ||
121 | + android:layout_width="match_parent" | ||
122 | + android:layout_height="50dp" | ||
123 | + android:layout_marginHorizontal="16dp" | ||
124 | + android:layout_marginTop="48dp" | ||
125 | + android:background="@drawable/shape_cos_gradient" | ||
126 | + android:gravity="center" | ||
127 | + android:paddingHorizontal="64dp" | ||
128 | + android:text="Αναλυτικά" | ||
129 | + android:textColor="@android:color/white" | ||
130 | + android:textSize="16sp" | ||
131 | + android:textStyle="bold" /> | ||
132 | +</LinearLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
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 | + android:layout_width="200dp" | ||
5 | + android:layout_height="200dp"> | ||
6 | + | ||
7 | + <androidx.constraintlayout.widget.Guideline | ||
8 | + android:id="@+id/gl_vertical_15_guideline" | ||
9 | + android:layout_width="wrap_content" | ||
10 | + android:layout_height="wrap_content" | ||
11 | + android:orientation="vertical" | ||
12 | + app:layout_constraintGuide_percent="0.15" /> | ||
13 | + | ||
14 | + <androidx.constraintlayout.widget.Guideline | ||
15 | + android:id="@+id/gl_vertical_85_guideline" | ||
16 | + android:layout_width="wrap_content" | ||
17 | + android:layout_height="wrap_content" | ||
18 | + android:orientation="vertical" | ||
19 | + app:layout_constraintGuide_percent="0.85" /> | ||
20 | + | ||
21 | + <ImageView | ||
22 | + android:id="@+id/iv_chart" | ||
23 | + android:layout_width="0dp" | ||
24 | + android:layout_height="0dp" | ||
25 | + android:src="@drawable/ic_chart" | ||
26 | + app:layout_constraintBottom_toBottomOf="parent" | ||
27 | + app:layout_constraintEnd_toEndOf="parent" | ||
28 | + app:layout_constraintStart_toStartOf="parent" | ||
29 | + app:layout_constraintTop_toTopOf="parent" /> | ||
30 | + | ||
31 | + <ImageView | ||
32 | + android:layout_width="wrap_content" | ||
33 | + android:layout_height="wrap_content" | ||
34 | + android:src="@drawable/ic_cosmote_logo" | ||
35 | + app:layout_constraintBottom_toBottomOf="parent" | ||
36 | + app:layout_constraintEnd_toStartOf="@+id/gl_vertical_85_guideline" | ||
37 | + app:layout_constraintStart_toEndOf="@+id/gl_vertical_15_guideline" | ||
38 | + app:layout_constraintTop_toTopOf="parent" /> | ||
39 | +</androidx.constraintlayout.widget.ConstraintLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment