Panagiotis Triantafyllou

minor fixes

1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<shape xmlns:android="http://schemas.android.com/apk/res/android">
3 + <stroke
4 + android:width="1.5dp"
5 + android:color="@color/white_tr2" />
6 +
7 + <corners android:radius="1000dp" />
8 +</shape>
...\ No newline at end of file ...\ No newline at end of file
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
12 12
13 <ImageView 13 <ImageView
14 android:id="@+id/iv_back" 14 android:id="@+id/iv_back"
15 - android:layout_width="wrap_content" 15 + android:layout_width="20dp"
16 - android:layout_height="wrap_content" 16 + android:layout_height="20dp"
17 android:layout_marginStart="16dp" 17 android:layout_marginStart="16dp"
18 android:src="@drawable/ic_back" 18 android:src="@drawable/ic_back"
19 app:layout_constraintBottom_toBottomOf="parent" 19 app:layout_constraintBottom_toBottomOf="parent"
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
25 android:layout_height="wrap_content" 25 android:layout_height="wrap_content"
26 android:text="@string/cos_profile_reward" 26 android:text="@string/cos_profile_reward"
27 android:textColor="@color/grey" 27 android:textColor="@color/grey"
28 - android:textSize="16sp" 28 + android:textSize="17sp"
29 android:textStyle="bold" 29 android:textStyle="bold"
30 app:layout_constraintBottom_toBottomOf="parent" 30 app:layout_constraintBottom_toBottomOf="parent"
31 app:layout_constraintEnd_toEndOf="parent" 31 app:layout_constraintEnd_toEndOf="parent"
...@@ -45,12 +45,77 @@ ...@@ -45,12 +45,77 @@
45 android:background="@drawable/shape_cos_loyalty"> 45 android:background="@drawable/shape_cos_loyalty">
46 46
47 <androidx.constraintlayout.widget.ConstraintLayout 47 <androidx.constraintlayout.widget.ConstraintLayout
48 - android:layout_width="300dp" 48 + android:layout_width="match_parent"
49 - android:layout_height="200dp" 49 + android:layout_height="150dp"
50 - app:layout_constraintStart_toStartOf="parent" 50 + android:paddingHorizontal="20dp"
51 + android:paddingVertical="8dp"
52 + android:layout_marginHorizontal="32dp"
53 + android:background="@drawable/shape_cos_gradient2"
51 app:layout_constraintEnd_toEndOf="parent" 54 app:layout_constraintEnd_toEndOf="parent"
52 - android:background="@drawable/shape_cos_gradient2"> 55 + app:layout_constraintStart_toStartOf="parent">
56 +
57 + <LinearLayout
58 + android:id="@+id/ll_loyalty_banner_info"
59 + android:layout_width="match_parent"
60 + android:layout_height="wrap_content"
61 + android:gravity="center_vertical"
62 + android:orientation="horizontal"
63 + android:weightSum="1"
64 + app:layout_constraintEnd_toEndOf="parent"
65 + app:layout_constraintStart_toStartOf="parent"
66 + app:layout_constraintTop_toTopOf="parent">
67 +
68 + <RelativeLayout
69 + android:layout_width="wrap_content"
70 + android:layout_height="wrap_content"
71 + android:layout_weight="0.8"
72 + android:gravity="start">
73 +
74 + <ImageView
75 + android:id="@+id/iv_loyalty_type"
76 + android:layout_width="60dp"
77 + android:layout_height="40dp"
78 + android:src="@drawable/ic_traveller_white" />
79 +
80 + <TextView
81 + android:layout_width="wrap_content"
82 + android:layout_height="wrap_content"
83 + android:layout_below="@+id/iv_loyalty_type"
84 + android:text="@string/cos_profile_loyalty_name"
85 + android:textColor="@android:color/white"
86 + android:textFontWeight="600"
87 + android:textSize="18sp" />
88 + </RelativeLayout>
89 +
90 + <RelativeLayout
91 + android:layout_width="wrap_content"
92 + android:layout_height="wrap_content"
93 + android:layout_weight="0.2"
94 + android:gravity="end">
95 +
96 + <de.hdodenhof.circleimageview.CircleImageView
97 + android:id="@+id/iv_profile_photo"
98 + android:layout_width="50dp"
99 + android:layout_height="50dp"
100 + android:src="@drawable/profile_photo"
101 + app:layout_constraintBottom_toBottomOf="parent"
102 + app:layout_constraintLeft_toLeftOf="parent"
103 + app:layout_constraintTop_toTopOf="parent" />
104 + </RelativeLayout>
105 + </LinearLayout>
53 106
107 + <TextView
108 + android:layout_width="wrap_content"
109 + android:layout_height="wrap_content"
110 + android:background="@drawable/round_border_tr"
111 + android:paddingHorizontal="8dp"
112 + android:paddingVertical="4dp"
113 + android:text="@string/cos_questionnaire"
114 + android:textColor="@android:color/white"
115 + android:textFontWeight="600"
116 + android:textSize="15sp"
117 + app:layout_constraintBottom_toBottomOf="parent"
118 + app:layout_constraintStart_toStartOf="parent" />
54 </androidx.constraintlayout.widget.ConstraintLayout> 119 </androidx.constraintlayout.widget.ConstraintLayout>
55 </androidx.constraintlayout.widget.ConstraintLayout> 120 </androidx.constraintlayout.widget.ConstraintLayout>
56 </ScrollView> 121 </ScrollView>
......
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
3 xmlns:app="http://schemas.android.com/apk/res-auto" 3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools" 4 xmlns:tools="http://schemas.android.com/tools"
5 android:layout_width="match_parent" 5 android:layout_width="match_parent"
6 - android:layout_height="215dp" 6 + android:layout_height="240dp"
7 android:background="@drawable/bottom_border"> 7 android:background="@drawable/bottom_border">
8 8
9 <LinearLayout 9 <LinearLayout
10 android:id="@+id/ll_carousel_icon" 10 android:id="@+id/ll_carousel_icon"
11 android:layout_width="match_parent" 11 android:layout_width="match_parent"
12 - android:layout_height="150dp"> 12 + app:layout_constraintStart_toStartOf="parent"
13 + app:layout_constraintEnd_toEndOf="parent"
14 + app:layout_constraintTop_toTopOf="parent"
15 + android:layout_height="170dp">
13 <ImageView 16 <ImageView
14 android:id="@+id/imageView" 17 android:id="@+id/imageView"
15 android:layout_width="wrap_content" 18 android:layout_width="wrap_content"
...@@ -22,10 +25,13 @@ ...@@ -22,10 +25,13 @@
22 <TextView 25 <TextView
23 android:id="@+id/textView" 26 android:id="@+id/textView"
24 android:layout_width="match_parent" 27 android:layout_width="match_parent"
25 - android:layout_height="65dp" 28 + android:layout_height="wrap_content"
26 android:paddingHorizontal="15dp" 29 android:paddingHorizontal="15dp"
27 android:paddingVertical="10dp" 30 android:paddingVertical="10dp"
31 + android:textSize="15sp"
32 + android:textStyle="bold"
33 + android:textColor="@color/grey"
28 android:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!" 34 android:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!"
29 app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon" 35 app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon"
30 - tools:layout_editor_absoluteX="-15dp" /> 36 + app:layout_constraintBottom_toBottomOf="parent" />
31 </androidx.constraintlayout.widget.ConstraintLayout> 37 </androidx.constraintlayout.widget.ConstraintLayout>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -14,4 +14,5 @@ ...@@ -14,4 +14,5 @@
14 <color name="cos_green2">#52DF5A</color> 14 <color name="cos_green2">#52DF5A</color>
15 <color name="green_dark">#1DA87A</color> 15 <color name="green_dark">#1DA87A</color>
16 <color name="cos_blue2">#0478BE</color> 16 <color name="cos_blue2">#0478BE</color>
17 + <color name="white_tr2">#77FFFFFF</color>
17 </resources> 18 </resources>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -20,4 +20,6 @@ ...@@ -20,4 +20,6 @@
20 <string name="menu_shop">Shop</string> 20 <string name="menu_shop">Shop</string>
21 <string name="menu_loyalty">Loyalty</string> 21 <string name="menu_loyalty">Loyalty</string>
22 <string name="menu_profile">Προφίλ</string> 22 <string name="menu_profile">Προφίλ</string>
23 + <string name="cos_profile_loyalty_name">Γιώργος Γεωργίου</string>
24 + <string name="cos_questionnaire">Ερωτηματολόγιο</string>
23 </resources> 25 </resources>
...\ No newline at end of file ...\ No newline at end of file
......