Showing
1 changed file
with
20 additions
and
14 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 | + |
| 11 | + <androidx.constraintlayout.widget.ConstraintLayout | ||
| 12 | + android:layout_width="match_parent" | ||
| 13 | + android:layout_height="match_parent" | ||
| 14 | + android:elevation="2dp"> | ||
| 10 | 15 | ||
| 11 | <LinearLayout | 16 | <LinearLayout |
| 12 | android:id="@+id/ll_carousel_icon" | 17 | android:id="@+id/ll_carousel_icon" |
| 13 | android:layout_width="match_parent" | 18 | android:layout_width="match_parent" |
| 14 | - app:layout_constraintStart_toStartOf="parent" | 19 | + android:layout_height="170dp" |
| 15 | app:layout_constraintEnd_toEndOf="parent" | 20 | app:layout_constraintEnd_toEndOf="parent" |
| 16 | - app:layout_constraintTop_toTopOf="parent" | 21 | + app:layout_constraintStart_toStartOf="parent" |
| 17 | - android:layout_height="170dp"> | 22 | + app:layout_constraintTop_toTopOf="parent"> |
| 23 | + | ||
| 18 | <ImageView | 24 | <ImageView |
| 19 | android:id="@+id/imageView" | 25 | android:id="@+id/imageView" |
| 20 | android:layout_width="wrap_content" | 26 | android:layout_width="wrap_content" |
| 21 | android:layout_height="wrap_content" | 27 | android:layout_height="wrap_content" |
| 22 | - tools:src="@drawable/carousel_banner" | ||
| 23 | android:scaleType="centerCrop" | 28 | android:scaleType="centerCrop" |
| 24 | - tools:layout_editor_absoluteY="-44dp" /> | 29 | + tools:src="@drawable/carousel_banner" /> |
| 25 | </LinearLayout> | 30 | </LinearLayout> |
| 26 | 31 | ||
| 27 | <TextView | 32 | <TextView |
| ... | @@ -30,10 +35,11 @@ | ... | @@ -30,10 +35,11 @@ |
| 30 | android:layout_height="wrap_content" | 35 | android:layout_height="wrap_content" |
| 31 | android:paddingHorizontal="15dp" | 36 | android:paddingHorizontal="15dp" |
| 32 | android:paddingVertical="10dp" | 37 | android:paddingVertical="10dp" |
| 38 | + android:textColor="@color/grey" | ||
| 33 | android:textSize="15sp" | 39 | android:textSize="15sp" |
| 34 | android:textStyle="bold" | 40 | android:textStyle="bold" |
| 35 | - android:textColor="@color/grey" | 41 | + app:layout_constraintBottom_toBottomOf="parent" |
| 36 | - tools:text="Χρόνια πολλά με υγεία! Σου κάνουμε δώρο 5GB για τη γιορτή σου!" | ||
| 37 | app:layout_constraintTop_toBottomOf="@+id/ll_carousel_icon" | 42 | 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 |
| 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