Showing
1 changed file
with
40 additions
and
34 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 | +<androidx.cardview.widget.CardView 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 | xmlns:tools="http://schemas.android.com/tools" | 4 | xmlns:tools="http://schemas.android.com/tools" |
5 | android:layout_width="@dimen/width_full" | 5 | android:layout_width="@dimen/width_full" |
6 | android:layout_height="150dp" | 6 | android:layout_height="150dp" |
7 | android:layout_marginStart="10dp" | 7 | android:layout_marginStart="10dp" |
8 | - android:background="@drawable/selector_cos_campaign"> | 8 | + app:cardCornerRadius="4dp"> |
9 | 9 | ||
10 | - <androidx.constraintlayout.widget.Guideline | 10 | + <androidx.constraintlayout.widget.ConstraintLayout |
11 | - android:id="@+id/gl_vertical_60_percent" | 11 | + android:layout_width="match_parent" |
12 | - android:layout_width="wrap_content" | 12 | + android:layout_height="match_parent" |
13 | - android:layout_height="wrap_content" | 13 | + android:background="@drawable/selector_cos_campaign"> |
14 | - android:orientation="vertical" | ||
15 | - app:layout_constraintGuide_percent="0.6" /> | ||
16 | 14 | ||
17 | - <ImageView | 15 | + <androidx.constraintlayout.widget.Guideline |
18 | - android:id="@+id/iv_campaign_logo" | 16 | + android:id="@+id/gl_vertical_60_percent" |
19 | - android:layout_width="0dp" | 17 | + android:layout_width="wrap_content" |
20 | - android:layout_height="0dp" | 18 | + android:layout_height="wrap_content" |
21 | - android:scaleType="centerCrop" | 19 | + android:orientation="vertical" |
22 | - app:layout_constraintBottom_toBottomOf="parent" | 20 | + app:layout_constraintGuide_percent="0.6" /> |
23 | - app:layout_constraintHorizontal_bias="0.0" | ||
24 | - app:layout_constraintLeft_toLeftOf="parent" | ||
25 | - tools:src="@drawable/ic_cosmote_logo_horizontal_grey" | ||
26 | - app:layout_constraintRight_toLeftOf="@+id/gl_vertical_60_percent" | ||
27 | - app:layout_constraintTop_toTopOf="parent" | ||
28 | - app:layout_constraintVertical_bias="0.0" /> | ||
29 | 21 | ||
30 | - <TextView | 22 | + <ImageView |
31 | - android:id="@+id/tv_campaign_title" | 23 | + android:id="@+id/iv_campaign_logo" |
32 | - android:layout_width="0dp" | 24 | + android:layout_width="0dp" |
33 | - android:layout_height="wrap_content" | 25 | + android:layout_height="0dp" |
34 | - android:layout_marginHorizontal="12dp" | 26 | + android:scaleType="centerCrop" |
35 | - android:gravity="center" | 27 | + app:layout_constraintBottom_toBottomOf="parent" |
36 | - android:maxLines="4" | 28 | + app:layout_constraintHorizontal_bias="0.0" |
37 | - android:textColor="@color/grey" | 29 | + app:layout_constraintLeft_toLeftOf="parent" |
38 | - app:layout_constraintBottom_toBottomOf="parent" | 30 | + app:layout_constraintRight_toLeftOf="@+id/gl_vertical_60_percent" |
39 | - app:layout_constraintLeft_toRightOf="@+id/gl_vertical_60_percent" | 31 | + app:layout_constraintTop_toTopOf="parent" |
40 | - app:layout_constraintRight_toRightOf="parent" | 32 | + app:layout_constraintVertical_bias="0.0" |
41 | - app:layout_constraintTop_toTopOf="parent" | 33 | + tools:src="@drawable/ic_cosmote_logo_horizontal_grey" /> |
42 | - tools:text="-10% in all products from IKEA" /> | ||
43 | 34 | ||
44 | -</androidx.constraintlayout.widget.ConstraintLayout> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
35 | + <TextView | ||
36 | + android:id="@+id/tv_campaign_title" | ||
37 | + android:layout_width="0dp" | ||
38 | + android:layout_height="wrap_content" | ||
39 | + android:layout_marginHorizontal="12dp" | ||
40 | + android:gravity="center" | ||
41 | + android:maxLines="4" | ||
42 | + android:textColor="@color/grey" | ||
43 | + app:layout_constraintBottom_toBottomOf="parent" | ||
44 | + app:layout_constraintLeft_toRightOf="@+id/gl_vertical_60_percent" | ||
45 | + app:layout_constraintRight_toRightOf="parent" | ||
46 | + app:layout_constraintTop_toTopOf="parent" | ||
47 | + tools:text="-10% in all products from IKEA" /> | ||
48 | + | ||
49 | + </androidx.constraintlayout.widget.ConstraintLayout> | ||
50 | +</androidx.cardview.widget.CardView> | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment