Showing
1 changed file
with
38 additions
and
32 deletions
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | + |
3 | +<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | xmlns:app="http://schemas.android.com/apk/res-auto" | 4 | xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | xmlns:tools="http://schemas.android.com/tools" | 5 | xmlns:tools="http://schemas.android.com/tools" |
5 | - android:layout_width="@dimen/width_full" | 6 | + android:layout_width="360dp" |
6 | - android:layout_height="@dimen/height_carousel" | 7 | + android:layout_height="240dp" |
7 | android:layout_marginLeft="10dp" | 8 | android:layout_marginLeft="10dp" |
8 | - android:elevation="2dp" | 9 | + app:cardCornerRadius="10dp"> |
9 | - android:background="@drawable/bottom_border"> | ||
10 | 10 | ||
11 | - <LinearLayout | 11 | + <androidx.constraintlayout.widget.ConstraintLayout |
12 | - android:id="@+id/ll_carousel_icon" | ||
13 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" |
14 | - app:layout_constraintStart_toStartOf="parent" | 13 | + android:layout_height="match_parent" |
15 | - app:layout_constraintEnd_toEndOf="parent" | 14 | + android:elevation="2dp"> |
16 | - app:layout_constraintTop_toTopOf="parent" | ||
17 | - android:layout_height="170dp"> | ||
18 | - <ImageView | ||
19 | - android:id="@+id/imageView" | ||
20 | - android:layout_width="wrap_content" | ||
21 | - android:layout_height="wrap_content" | ||
22 | - tools:src="@drawable/carousel_banner" | ||
23 | - android:scaleType="centerCrop" | ||
24 | - tools:layout_editor_absoluteY="-44dp" /> | ||
25 | - </LinearLayout> | ||
26 | 15 | ||
27 | - <TextView | ||
28 | - android:id="@+id/textView" | ||
29 | - android:layout_width="match_parent" | ||
30 | - android:layout_height="wrap_content" | ||
31 | - android:paddingHorizontal="15dp" | ||
32 | - android:paddingVertical="10dp" | ||
33 | - android:textSize="15sp" | ||
34 | - android:textStyle="bold" | ||
35 | - android:textColor="@color/grey" | ||
36 | - tools:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!" | ||
37 | - app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon" | ||
38 | - app:layout_constraintBottom_toBottomOf="parent" /> | ||
39 | -</androidx.constraintlayout.widget.ConstraintLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
16 | + <LinearLayout | ||
17 | + android:id="@+id/ll_carousel_icon" | ||
18 | + android:layout_width="match_parent" | ||
19 | + android:layout_height="170dp" | ||
20 | + app:layout_constraintEnd_toEndOf="parent" | ||
21 | + app:layout_constraintStart_toStartOf="parent" | ||
22 | + app:layout_constraintTop_toTopOf="parent"> | ||
23 | + | ||
24 | + <ImageView | ||
25 | + android:id="@+id/imageView" | ||
26 | + android:layout_width="wrap_content" | ||
27 | + android:layout_height="wrap_content" | ||
28 | + android:scaleType="centerCrop" | ||
29 | + tools:src="@drawable/carousel_banner" /> | ||
30 | + </LinearLayout> | ||
31 | + | ||
32 | + <TextView | ||
33 | + android:id="@+id/textView" | ||
34 | + android:layout_width="match_parent" | ||
35 | + android:layout_height="wrap_content" | ||
36 | + android:paddingHorizontal="15dp" | ||
37 | + android:paddingVertical="10dp" | ||
38 | + android:textColor="@color/grey" | ||
39 | + android:textSize="15sp" | ||
40 | + android:textStyle="bold" | ||
41 | + app:layout_constraintBottom_toBottomOf="parent" | ||
42 | + app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon" | ||
43 | + tools:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!" /> | ||
44 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
45 | +</androidx.cardview.widget.CardView> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment