|
22 | 22 | <androidx.cardview.widget.CardView
|
23 | 23 | android:layout_width="match_parent"
|
24 | 24 | android:layout_height="wrap_content"
|
25 |
| - android:layout_marginStart="8dp" |
26 |
| - android:layout_marginTop="8dp" |
27 |
| - android:layout_marginEnd="8dp" |
| 25 | + android:layout_marginStart="@dimen/material_horizontal_margin" |
| 26 | + android:layout_marginTop="@dimen/material_vertical_margin" |
| 27 | + android:layout_marginEnd="@dimen/material_horizontal_margin" |
28 | 28 | app:cardCornerRadius="6dp"
|
29 | 29 | app:cardElevation="6dp">
|
30 | 30 |
|
|
36 | 36 | <ImageButton
|
37 | 37 | android:id="@+id/action_play"
|
38 | 38 | style="@style/Widget.AppCompat.Button.Borderless"
|
39 |
| - android:layout_width="wrap_content" |
| 39 | + android:layout_width="64dp" |
40 | 40 | android:layout_height="wrap_content"
|
41 | 41 | android:tint="@color/md_red_500"
|
42 | 42 | app:layout_constraintBottom_toBottomOf="@+id/resource_summary"
|
|
46 | 46 |
|
47 | 47 | <TextView
|
48 | 48 | android:id="@+id/resource_summary"
|
49 |
| - style="@style/TextAppearance.AppCompat.Small" |
| 49 | + style="@style/TextAppearance.AppCompat.Caption" |
50 | 50 | android:layout_width="0dp"
|
51 | 51 | android:layout_height="wrap_content"
|
| 52 | + android:layout_marginTop="@dimen/material_content_distance_small" |
52 | 53 | android:text="In this session you will learn best practices of using ConstraintLayout on Android, particularly covering tips and tricks in the Layout Editor and new features introduced in the 2.0 version. We will go over how to take advantage of those to create UI more efficiently."
|
53 | 54 | app:layout_constraintEnd_toStartOf="@+id/action_play"
|
54 |
| - app:layout_constraintStart_toStartOf="parent" |
55 |
| - app:layout_constraintTop_toBottomOf="@+id/resource_title" /> |
| 55 | + app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
| 56 | + app:layout_constraintTop_toBottomOf="@+id/resource_author" /> |
56 | 57 |
|
57 | 58 | <TextView
|
58 | 59 | android:id="@+id/resource_date"
|
59 | 60 | android:layout_width="wrap_content"
|
60 | 61 | android:layout_height="wrap_content"
|
| 62 | + android:layout_marginTop="@dimen/material_content_distance_small" |
| 63 | + android:layout_marginBottom="@dimen/material_vertical_margin" |
61 | 64 | android:text="December 2, 2018"
|
62 |
| - app:layout_constraintStart_toStartOf="parent" |
| 65 | + app:layout_constraintBottom_toBottomOf="parent" |
| 66 | + app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
63 | 67 | app:layout_constraintTop_toBottomOf="@+id/resource_summary" />
|
64 | 68 |
|
65 | 69 | <TextView
|
66 | 70 | android:id="@+id/resource_title"
|
67 | 71 | style="@style/TextAppearance.AppCompat.Title"
|
68 | 72 | android:layout_width="0dp"
|
69 | 73 | android:layout_height="wrap_content"
|
| 74 | + android:layout_marginTop="@dimen/material_vertical_margin" |
70 | 75 | android:text="This is the title of the talk."
|
71 | 76 | app:layout_constraintEnd_toStartOf="@+id/action_play"
|
72 |
| - app:layout_constraintStart_toStartOf="parent" |
| 77 | + app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
73 | 78 | app:layout_constraintTop_toTopOf="parent" />
|
74 | 79 |
|
| 80 | + |
| 81 | + <TextView |
| 82 | + android:id="@+id/resource_author" |
| 83 | + style="@style/TextAppearance.AppCompat.Body2" |
| 84 | + android:layout_width="0dp" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:layout_marginTop="@dimen/material_content_distance_small" |
| 87 | + android:gravity="end" |
| 88 | + android:text="by Author of the talk." |
| 89 | + app:layout_constraintEnd_toStartOf="@+id/action_play" |
| 90 | + app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
| 91 | + app:layout_constraintTop_toBottomOf="@+id/resource_title" /> |
| 92 | + |
| 93 | + <androidx.constraintlayout.widget.Guideline |
| 94 | + android:id="@+id/guideline_vertical_start" |
| 95 | + android:layout_width="0dp" |
| 96 | + android:layout_height="0dp" |
| 97 | + android:orientation="vertical" |
| 98 | + app:layout_constraintGuide_begin="16dp" /> |
| 99 | + |
75 | 100 | </androidx.constraintlayout.widget.ConstraintLayout>
|
76 | 101 | </androidx.cardview.widget.CardView>
|
77 | 102 |
|
|
0 commit comments