Showing
5 changed files
with
54 additions
and
30 deletions
1 | -<?xml version="1.0" encoding="utf-8"?> | ||
2 | -<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | - android:shape="rectangle"> | ||
4 | - <corners | ||
5 | - android:radius="19dp"/> | ||
6 | - | ||
7 | - <solid android:color="@android:color/holo_red_dark" /> | ||
8 | -</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
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="@android:color/transparent" /> | ||
6 | + | ||
7 | + <corners android:radius="19dp" /> | ||
8 | + <solid android:color="@android:color/transparent" /> | ||
9 | +</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
3 | + <stroke | ||
4 | + android:width="0.5dp" | ||
5 | + android:color="@android:color/white" /> | ||
6 | + | ||
7 | + <corners | ||
8 | + android:bottomLeftRadius="19dp" | ||
9 | + android:bottomRightRadius="19dp" /> | ||
10 | + | ||
11 | + <solid android:color="@android:color/white" /> | ||
12 | +</shape> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -2,35 +2,36 @@ | ... | @@ -2,35 +2,36 @@ |
2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | xmlns:app="http://schemas.android.com/apk/res-auto" | 3 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | android:layout_width="360dp" | 4 | android:layout_width="360dp" |
5 | - android:layout_height="200dp" | 5 | + android:layout_height="240dp" |
6 | - android:layout_marginStart="10dp" | 6 | + android:layout_marginStart="10dp"> |
7 | - android:background="@drawable/shape_cos_transparent"> | ||
8 | 7 | ||
9 | <androidx.constraintlayout.widget.ConstraintLayout | 8 | <androidx.constraintlayout.widget.ConstraintLayout |
10 | android:layout_width="360dp" | 9 | android:layout_width="360dp" |
11 | - android:layout_height="200dp"> | 10 | + android:layout_height="240dp"> |
12 | 11 | ||
13 | <androidx.constraintlayout.widget.Guideline | 12 | <androidx.constraintlayout.widget.Guideline |
14 | - android:id="@+id/gl_horizontal_80_guideline" | 13 | + android:id="@+id/gl_horizontal_75_guideline" |
15 | android:layout_width="wrap_content" | 14 | android:layout_width="wrap_content" |
16 | android:layout_height="wrap_content" | 15 | android:layout_height="wrap_content" |
17 | android:orientation="horizontal" | 16 | android:orientation="horizontal" |
18 | app:layout_constraintGuide_percent="0.75" /> | 17 | app:layout_constraintGuide_percent="0.75" /> |
19 | 18 | ||
20 | <androidx.constraintlayout.widget.Guideline | 19 | <androidx.constraintlayout.widget.Guideline |
21 | - android:id="@+id/gl_horizontal_75_guideline" | 20 | + android:id="@+id/gl_horizontal_50_guideline" |
22 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" |
23 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" |
24 | android:orientation="horizontal" | 23 | android:orientation="horizontal" |
25 | - app:layout_constraintGuide_percent="0.55" /> | 24 | + app:layout_constraintGuide_percent="0.5" /> |
26 | 25 | ||
27 | <ImageView | 26 | <ImageView |
28 | android:id="@+id/iv_gift_item_logo" | 27 | android:id="@+id/iv_gift_item_logo" |
29 | android:layout_width="match_parent" | 28 | android:layout_width="match_parent" |
30 | - android:layout_height="0dp" | 29 | + android:layout_height="match_parent" |
30 | + android:background="@drawable/shape_cos_transparent_rounded" | ||
31 | + android:clipToOutline="true" | ||
31 | android:scaleType="centerCrop" | 32 | android:scaleType="centerCrop" |
32 | android:src="@drawable/ic_banner_gift" | 33 | android:src="@drawable/ic_banner_gift" |
33 | - app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_80_guideline" | 34 | + app:layout_constraintBottom_toTopOf="@+id/gl_horizontal_75_guideline" |
34 | app:layout_constraintEnd_toEndOf="parent" | 35 | app:layout_constraintEnd_toEndOf="parent" |
35 | app:layout_constraintStart_toStartOf="parent" | 36 | app:layout_constraintStart_toStartOf="parent" |
36 | app:layout_constraintTop_toTopOf="parent" /> | 37 | app:layout_constraintTop_toTopOf="parent" /> |
... | @@ -41,14 +42,15 @@ | ... | @@ -41,14 +42,15 @@ |
41 | app:layout_constraintBottom_toBottomOf="parent" | 42 | app:layout_constraintBottom_toBottomOf="parent" |
42 | app:layout_constraintEnd_toEndOf="parent" | 43 | app:layout_constraintEnd_toEndOf="parent" |
43 | app:layout_constraintStart_toStartOf="parent" | 44 | app:layout_constraintStart_toStartOf="parent" |
44 | - app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_75_guideline"> | 45 | + app:layout_constraintTop_toBottomOf="@+id/gl_horizontal_50_guideline"> |
45 | 46 | ||
46 | <LinearLayout | 47 | <LinearLayout |
47 | android:id="@+id/ll_loyalty_item1" | 48 | android:id="@+id/ll_loyalty_item1" |
48 | android:layout_width="match_parent" | 49 | android:layout_width="match_parent" |
49 | android:layout_height="wrap_content" | 50 | android:layout_height="wrap_content" |
50 | android:background="@color/white_tr3" | 51 | android:background="@color/white_tr3" |
51 | - android:paddingVertical="4dp"> | 52 | + android:paddingHorizontal="16dp" |
53 | + android:paddingVertical="6dp"> | ||
52 | 54 | ||
53 | <TextView | 55 | <TextView |
54 | android:layout_width="wrap_content" | 56 | android:layout_width="wrap_content" |
... | @@ -59,33 +61,42 @@ | ... | @@ -59,33 +61,42 @@ |
59 | android:textStyle="bold" /> | 61 | android:textStyle="bold" /> |
60 | </LinearLayout> | 62 | </LinearLayout> |
61 | 63 | ||
62 | - <LinearLayout | 64 | + <androidx.constraintlayout.widget.ConstraintLayout |
63 | android:layout_width="match_parent" | 65 | android:layout_width="match_parent" |
64 | android:layout_height="match_parent" | 66 | android:layout_height="match_parent" |
65 | android:layout_below="@+id/ll_loyalty_item1" | 67 | android:layout_below="@+id/ll_loyalty_item1" |
66 | - android:background="@android:color/white" | 68 | + android:background="@drawable/shape_cos_white_rounded_lower" |
67 | - android:orientation="vertical"> | 69 | + android:orientation="vertical" |
70 | + android:paddingHorizontal="16dp"> | ||
68 | 71 | ||
69 | <TextView | 72 | <TextView |
70 | - android:layout_width="match_parent" | 73 | + android:id="@+id/tv_loyalty_item_subtitle" |
74 | + android:layout_width="0dp" | ||
71 | android:layout_height="wrap_content" | 75 | android:layout_height="wrap_content" |
72 | android:maxLines="2" | 76 | android:maxLines="2" |
73 | android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" | 77 | android:text="2 ώρες δωρεάν απεριόριστα data όποτε θέλεις εσύ, κάθε μήνα!" |
74 | android:textColor="@color/grey" | 78 | android:textColor="@color/grey" |
75 | - android:textSize="14sp" /> | 79 | + android:textSize="16sp" |
80 | + app:layout_constraintEnd_toEndOf="parent" | ||
81 | + app:layout_constraintStart_toStartOf="parent" | ||
82 | + app:layout_constraintTop_toTopOf="parent" /> | ||
76 | 83 | ||
77 | <TextView | 84 | <TextView |
78 | android:layout_width="wrap_content" | 85 | android:layout_width="wrap_content" |
79 | android:layout_height="wrap_content" | 86 | android:layout_height="wrap_content" |
80 | android:layout_gravity="end" | 87 | android:layout_gravity="end" |
81 | - android:background="@drawable/shape_cos_gradient2" | 88 | + android:background="@drawable/shape_cos_gradient3" |
82 | - android:paddingEnd="8dp" | 89 | + android:paddingHorizontal="12dp" |
83 | - android:paddingBottom="8dp" | 90 | + android:layout_marginBottom="16dp" |
91 | + android:paddingVertical="4dp" | ||
84 | android:text="Πάρε το δώρο σου" | 92 | android:text="Πάρε το δώρο σου" |
85 | android:textColor="@android:color/white" | 93 | android:textColor="@android:color/white" |
86 | android:textFontWeight="600" | 94 | android:textFontWeight="600" |
87 | - android:textSize="16sp" /> | 95 | + android:textSize="16sp" |
88 | - </LinearLayout> | 96 | + app:layout_constraintBottom_toBottomOf="parent" |
97 | + app:layout_constraintEnd_toEndOf="parent" | ||
98 | + app:layout_constraintTop_toBottomOf="@+id/tv_loyalty_item_subtitle" /> | ||
99 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
89 | </RelativeLayout> | 100 | </RelativeLayout> |
90 | </androidx.constraintlayout.widget.ConstraintLayout> | 101 | </androidx.constraintlayout.widget.ConstraintLayout> |
91 | </RelativeLayout> | 102 | </RelativeLayout> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -16,5 +16,5 @@ | ... | @@ -16,5 +16,5 @@ |
16 | <color name="green_dark">#1DA87A</color> | 16 | <color name="green_dark">#1DA87A</color> |
17 | <color name="cos_blue2">#0478BE</color> | 17 | <color name="cos_blue2">#0478BE</color> |
18 | <color name="white_tr2">#77FFFFFF</color> | 18 | <color name="white_tr2">#77FFFFFF</color> |
19 | - <color name="white_tr3">#CCFFFFFF</color> | 19 | + <color name="white_tr3">#E6FFFFFF</color> |
20 | </resources> | 20 | </resources> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment