|
1 |
| -<?xml version="1.0" encoding="utf-8"?><!-- |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
| 3 | +<!-- |
2 | 4 | ~ Copyright (c) 2019 Hossain Khan
|
3 | 5 | ~
|
4 | 6 | ~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
48 | 50 | <!-- ================ Begin top section with background, poster and meta info ================ -->
|
49 | 51 |
|
50 | 52 |
|
51 |
| - |
52 | 53 | <ImageView
|
53 | 54 | android:id="@+id/thumbnail"
|
54 | 55 | android:layout_width="0dp"
|
|
79 | 80 | android:id="@+id/poster"
|
80 | 81 | android:layout_width="wrap_content"
|
81 | 82 | android:layout_height="wrap_content"
|
82 |
| - android:src="@drawable/spider_verse_poster" |
| 83 | + android:src="@drawable/poster_spider_verse_detail" |
83 | 84 | app:layout_constraintBottom_toBottomOf="@+id/thumbnail"
|
84 | 85 | app:layout_constraintStart_toStartOf="@+id/guideline_vertical_start"
|
85 |
| - app:layout_constraintTop_toBottomOf="@+id/movie_trailer" /> |
| 86 | + app:layout_constraintTop_toTopOf="@+id/thumbnail" /> |
86 | 87 |
|
87 | 88 | <TextView
|
88 | 89 | android:id="@+id/movie_title"
|
89 | 90 | style="@style/TextAppearance.AppCompat.Title.Inverse"
|
90 | 91 | android:layout_width="0dp"
|
91 | 92 | android:layout_height="wrap_content"
|
92 |
| - android:layout_marginStart="8dp" |
| 93 | + android:layout_marginStart="16dp" |
93 | 94 | android:text="Spider-Man: Into The Spider-Verse"
|
94 | 95 | app:layout_constraintEnd_toEndOf="@id/guideline_vertical_end"
|
95 | 96 | app:layout_constraintStart_toEndOf="@+id/poster"
|
96 |
| - app:layout_constraintTop_toTopOf="@+id/poster" /> |
| 97 | + app:layout_constraintTop_toBottomOf="@+id/movie_trailer" /> |
97 | 98 |
|
98 | 99 | <TextView
|
99 | 100 | android:id="@+id/movie_rating_and_time"
|
|
125 | 126 | android:layout_gravity="center"
|
126 | 127 | android:layout_marginStart="16dp"
|
127 | 128 | android:drawableStart="@drawable/ic_people_black_18dp"
|
128 |
| - android:drawablePadding="3dp" |
| 129 | + android:drawablePadding="5dp" |
| 130 | + android:drawableEnd="@drawable/ic_baseline_4k_18dp" |
129 | 131 | android:drawableTint="@android:color/white"
|
130 | 132 | android:text="93%"
|
131 | 133 | app:layout_constraintLeft_toRightOf="@+id/user_rating"
|
|
208 | 210 |
|
209 | 211 | <!-- =========================== End Chained Button =========================== -->
|
210 | 212 |
|
| 213 | + <!-- ======================= BEGIN Recycler view with related movies ======================== --> |
| 214 | + |
| 215 | + <TextView |
| 216 | + android:id="@+id/movie_related_title" |
| 217 | + style="@style/TextAppearance.AppCompat.Title.Inverse" |
| 218 | + android:layout_width="0dp" |
| 219 | + android:layout_height="wrap_content" |
| 220 | + android:layout_marginTop="16dp" |
| 221 | + android:text="Similar Movies" |
| 222 | + app:layout_constraintLeft_toLeftOf="@+id/guideline_vertical_start" |
| 223 | + app:layout_constraintRight_toRightOf="@+id/guideline_vertical_end" |
| 224 | + app:layout_constraintTop_toBottomOf="@+id/button_rent" /> |
| 225 | + |
| 226 | + <androidx.recyclerview.widget.RecyclerView |
| 227 | + android:id="@+id/movie_related_contents" |
| 228 | + android:layout_width="0dp" |
| 229 | + android:layout_height="wrap_content" |
| 230 | + android:layout_marginTop="16dp" |
| 231 | + app:layout_constraintLeft_toLeftOf="parent" |
| 232 | + app:layout_constraintRight_toRightOf="parent" |
| 233 | + app:layout_constraintTop_toBottomOf="@+id/movie_related_title" |
| 234 | + tools:background="@color/md_pink_100" |
| 235 | + tools:itemCount="4" |
| 236 | + tools:layoutManager="LinearLayoutManager" |
| 237 | + tools:listitem="@layout/list_item_poster" |
| 238 | + tools:orientation="horizontal" /> |
| 239 | + |
| 240 | + <!-- ======================= END Recycler view - similar movies ======================== --> |
| 241 | + |
211 | 242 |
|
212 | 243 | <!-- ======================= BEGIN More info block with lots of text info ======================== -->
|
213 | 244 |
|
|
216 | 247 | style="@style/TextAppearance.AppCompat.Title.Inverse"
|
217 | 248 | android:layout_width="0dp"
|
218 | 249 | android:layout_height="wrap_content"
|
219 |
| - android:layout_marginTop="16dp" |
| 250 | + android:layout_marginTop="24dp" |
220 | 251 | android:text="More Information"
|
221 | 252 | app:layout_constraintLeft_toLeftOf="@+id/guideline_vertical_start"
|
222 | 253 | app:layout_constraintRight_toRightOf="@+id/guideline_vertical_end"
|
223 |
| - app:layout_constraintTop_toBottomOf="@+id/button_rent" /> |
| 254 | + app:layout_constraintTop_toBottomOf="@+id/movie_related_contents" /> |
224 | 255 |
|
225 | 256 | <TextView
|
226 | 257 | android:id="@+id/info_audio_language_label"
|
|
0 commit comments