|
16 | 16 | ~ limitations under the License.
|
17 | 17 | -->
|
18 | 18 |
|
| 19 | + |
| 20 | +<!-- |
| 21 | + About this layout: |
| 22 | + ==================== |
| 23 | + This layout is somewhat close view of TED app's video playback screen in portrait mode. |
| 24 | + This layout uses following ConstraintLayout features: |
| 25 | + * Horizontal chains - Playback controls row, time control |
| 26 | + * Vertical chains - Author info block |
| 27 | + * Aspect ratio - video image view |
| 28 | +--> |
19 | 29 | <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
20 | 30 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
21 | 31 | xmlns:tools="http://schemas.android.com/tools"
|
|
110 | 120 | app:layout_constraintTop_toTopOf="@+id/action_forward15" />
|
111 | 121 |
|
112 | 122 |
|
| 123 | + <!-- A black view that covers the full witdth to match the thumbnail extra space --> |
| 124 | + <View |
| 125 | + android:layout_width="0dp" |
| 126 | + android:layout_height="220dp" |
| 127 | + android:background="@color/md_black_1000" |
| 128 | + app:layout_constraintEnd_toEndOf="parent" |
| 129 | + app:layout_constraintStart_toStartOf="parent" |
| 130 | + app:layout_constraintTop_toTopOf="parent" /> |
113 | 131 | <ImageView
|
114 | 132 | android:id="@+id/video_player_thumbnail"
|
115 | 133 | android:layout_width="0dp"
|
116 | 134 | android:layout_height="220dp"
|
117 |
| - |
118 |
| - android:src="@drawable/ic_ted_talks_logo" |
| 135 | + android:src="@drawable/thumb_ted_talk" |
119 | 136 | app:layout_constraintDimensionRatio="W,16:9"
|
120 | 137 | app:layout_constraintEnd_toEndOf="@id/guideline_vertical_right"
|
121 | 138 | app:layout_constraintStart_toStartOf="@id/guideline_vertical_left"
|
122 | 139 | app:layout_constraintTop_toTopOf="parent"
|
123 | 140 | tools:background="#888" />
|
124 | 141 |
|
125 | 142 |
|
| 143 | + |
126 | 144 | <SeekBar
|
127 | 145 | android:id="@+id/progressBar"
|
128 | 146 | style="?android:attr/progressBarStyleHorizontal"
|
|
136 | 154 | app:layout_constraintTop_toBottomOf="@+id/action_play_pause" />
|
137 | 155 |
|
138 | 156 |
|
139 |
| - |
140 | 157 | <TextView
|
141 | 158 | android:id="@+id/talk_title"
|
142 | 159 | style="@style/TextAppearance.AppCompat.Title"
|
143 | 160 | android:layout_width="0dp"
|
144 | 161 | android:layout_height="wrap_content"
|
145 |
| - android:layout_marginTop="16dp" |
| 162 | + android:layout_marginTop="8dp" |
146 | 163 | android:gravity="center_horizontal"
|
147 |
| - android:text="Why student journalists should be protected from censorship" |
| 164 | + android:text="The amazing brains and morphing skin of octopuses and other cephalopods" |
148 | 165 | app:layout_constraintEnd_toEndOf="@id/guideline_vertical_right"
|
149 | 166 | app:layout_constraintStart_toStartOf="@id/guideline_vertical_left"
|
150 | 167 | app:layout_constraintTop_toBottomOf="@+id/author" />
|
|
155 | 172 | style="@style/TextAppearance.AppCompat.Small"
|
156 | 173 | android:layout_width="0dp"
|
157 | 174 | android:layout_height="wrap_content"
|
158 |
| - android:layout_marginTop="32dp" |
| 175 | + android:layout_marginTop="24dp" |
159 | 176 | android:gravity="center_horizontal"
|
160 |
| - android:text="Neha Madhira and Haley Stack" |
| 177 | + android:text="Roger Hanlon" |
161 | 178 | app:layout_constraintEnd_toEndOf="@id/guideline_vertical_right"
|
162 | 179 | app:layout_constraintStart_toStartOf="@id/guideline_vertical_left"
|
163 | 180 | app:layout_constraintTop_toBottomOf="@+id/video_player_thumbnail" />
|
|
0 commit comments