|
39 | 39 | android:layout_width="64dp"
|
40 | 40 | android:layout_height="wrap_content"
|
41 | 41 | android:tint="@color/md_red_500"
|
42 |
| - app:layout_constraintBottom_toBottomOf="@+id/resource_summary" |
43 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 42 | + app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
44 | 43 | app:layout_constraintTop_toTopOf="@+id/resource_title"
|
45 | 44 | app:srcCompat="@drawable/ic_play_circle_filled_black_42dp" />
|
46 | 45 |
|
|
51 | 50 | android:layout_height="wrap_content"
|
52 | 51 | android:layout_marginTop="@dimen/material_content_distance_small"
|
53 | 52 | android:text="@{data.summary}"
|
54 |
| - app:layout_constraintEnd_toStartOf="@+id/action_play" |
| 53 | + app:layout_constraintEnd_toEndOf="@id/guideline_vertical_end" |
55 | 54 | app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start"
|
56 | 55 | app:layout_constraintTop_toBottomOf="@+id/resource_author"
|
57 | 56 | tools: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." />
|
|
72 | 71 | android:id="@+id/resource_title"
|
73 | 72 | style="@style/TextAppearance.AppCompat.Title"
|
74 | 73 | android:layout_width="0dp"
|
| 74 | + android:gravity="end" |
75 | 75 | android:layout_height="wrap_content"
|
76 | 76 | android:layout_marginTop="@dimen/material_vertical_margin"
|
77 | 77 | android:text="@{data.title}"
|
78 |
| - app:layout_constraintEnd_toStartOf="@+id/action_play" |
79 |
| - app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
| 78 | + app:layout_constraintEnd_toEndOf="@id/guideline_vertical_end" |
| 79 | + app:layout_constraintStart_toEndOf="@id/action_play" |
80 | 80 | app:layout_constraintTop_toTopOf="parent"
|
81 |
| - tools:text="This is the title of the talk." /> |
| 81 | + tools:text="This is the title of the talk. This can become multi line" /> |
82 | 82 |
|
83 | 83 |
|
84 | 84 | <TextView
|
|
89 | 89 | android:layout_marginTop="@dimen/material_content_distance_small"
|
90 | 90 | android:gravity="end"
|
91 | 91 | android:text="@{@string/tech_talk_author_and_venue(data.author, data.event)}"
|
92 |
| - app:layout_constraintEnd_toStartOf="@+id/action_play" |
93 |
| - app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start" |
| 92 | + app:layout_constraintEnd_toEndOf="@id/guideline_vertical_end" |
| 93 | + app:layout_constraintStart_toEndOf="@+id/action_play" |
94 | 94 | app:layout_constraintTop_toBottomOf="@+id/resource_title"
|
95 | 95 | tools:text="by Author of the talk." />
|
96 | 96 |
|
|
99 | 99 | android:layout_width="0dp"
|
100 | 100 | android:layout_height="0dp"
|
101 | 101 | android:orientation="vertical"
|
102 |
| - app:layout_constraintGuide_begin="16dp" /> |
| 102 | + app:layout_constraintGuide_begin="@dimen/material_horizontal_margin" /> |
| 103 | + |
| 104 | + <androidx.constraintlayout.widget.Guideline |
| 105 | + android:id="@+id/guideline_vertical_end" |
| 106 | + android:layout_width="0dp" |
| 107 | + android:layout_height="0dp" |
| 108 | + android:orientation="vertical" |
| 109 | + app:layout_constraintGuide_end="@dimen/material_horizontal_margin" /> |
103 | 110 |
|
104 | 111 | </androidx.constraintlayout.widget.ConstraintLayout>
|
105 | 112 | </androidx.cardview.widget.CardView>
|
|
0 commit comments