|
58 | 58 | app:layout_constraintStart_toStartOf="parent"
|
59 | 59 | app:layout_constraintTop_toTopOf="parent" />
|
60 | 60 |
|
| 61 | + <!-- Album Info Container. Use a Card to give its background an --> |
| 62 | + <!-- elevation overlay in dark theme. --> |
| 63 | + <com.google.android.material.card.MaterialCardView |
| 64 | + android:id="@+id/album_info_container" |
| 65 | + android:layout_width="match_parent" |
| 66 | + android:layout_height="196dp" |
| 67 | + app:cardBackgroundColor="?attr/colorPrimarySurface" |
| 68 | + app:strokeWidth="0dp" |
| 69 | + app:cardCornerRadius="0dp" |
| 70 | + app:layout_constraintEnd_toEndOf="parent" |
| 71 | + app:layout_constraintStart_toStartOf="parent" |
| 72 | + app:layout_constraintTop_toBottomOf="@id/album_image"> |
| 73 | + |
| 74 | + <LinearLayout |
| 75 | + android:id="@+id/album_details" |
| 76 | + android:layout_width="match_parent" |
| 77 | + android:layout_height="match_parent" |
| 78 | + android:paddingStart="56dp" |
| 79 | + android:paddingEnd="16dp" |
| 80 | + android:paddingLeft="56dp" |
| 81 | + android:paddingRight="16dp" |
| 82 | + android:gravity="center_vertical" |
| 83 | + android:orientation="vertical"> |
| 84 | + |
| 85 | + <TextView |
| 86 | + android:id="@+id/album_title" |
| 87 | + android:layout_width="wrap_content" |
| 88 | + android:layout_height="wrap_content" |
| 89 | + android:ellipsize="end" |
| 90 | + android:maxLines="1" |
| 91 | + android:textAppearance="?attr/textAppearanceHeadline3" |
| 92 | + android:textColor="?attr/colorOnPrimarySurface" |
| 93 | + tools:text="Metamorphosis" /> |
| 94 | + <TextView |
| 95 | + android:id="@+id/album_artist" |
| 96 | + android:layout_width="wrap_content" |
| 97 | + android:layout_height="wrap_content" |
| 98 | + android:ellipsize="end" |
| 99 | + android:maxLines="1" |
| 100 | + android:textAppearance="?attr/textAppearanceSubtitle1" |
| 101 | + android:textColor="?attr/colorOnPrimarySurface" |
| 102 | + tools:text="Sandra Adams" /> |
| 103 | + |
| 104 | + </LinearLayout> |
| 105 | + |
| 106 | + </com.google.android.material.card.MaterialCardView> |
61 | 107 | <!-- Music Player -->
|
62 | 108 | <androidx.constraintlayout.widget.ConstraintLayout
|
63 | 109 | android:id="@+id/music_player_container"
|
|
168 | 214 |
|
169 | 215 | </androidx.constraintlayout.widget.ConstraintLayout>
|
170 | 216 |
|
171 |
| - <!-- Album Info Container. Use a Card to give its background an --> |
172 |
| - <!-- elevation overlay in dark theme. --> |
173 |
| - <com.google.android.material.card.MaterialCardView |
174 |
| - android:id="@+id/album_info_container" |
175 |
| - android:layout_width="match_parent" |
176 |
| - android:layout_height="196dp" |
177 |
| - app:cardBackgroundColor="?attr/colorPrimarySurface" |
178 |
| - app:layout_constraintEnd_toEndOf="parent" |
179 |
| - app:layout_constraintStart_toStartOf="parent" |
180 |
| - app:layout_constraintTop_toBottomOf="@id/music_player_container"> |
181 |
| - |
182 |
| - <LinearLayout |
183 |
| - android:id="@+id/album_details" |
184 |
| - android:layout_width="match_parent" |
185 |
| - android:layout_height="match_parent" |
186 |
| - android:paddingStart="56dp" |
187 |
| - android:paddingEnd="16dp" |
188 |
| - android:paddingLeft="56dp" |
189 |
| - android:paddingRight="16dp" |
190 |
| - android:gravity="center_vertical" |
191 |
| - android:orientation="vertical"> |
192 |
| - |
193 |
| - <TextView |
194 |
| - android:id="@+id/album_title" |
195 |
| - android:layout_width="wrap_content" |
196 |
| - android:layout_height="wrap_content" |
197 |
| - android:ellipsize="end" |
198 |
| - android:maxLines="1" |
199 |
| - android:textAppearance="?attr/textAppearanceHeadline3" |
200 |
| - android:textColor="?attr/colorOnPrimarySurface" |
201 |
| - tools:text="Metamorphosis" /> |
202 |
| - <TextView |
203 |
| - android:id="@+id/album_artist" |
204 |
| - android:layout_width="wrap_content" |
205 |
| - android:layout_height="wrap_content" |
206 |
| - android:ellipsize="end" |
207 |
| - android:maxLines="1" |
208 |
| - android:textAppearance="?attr/textAppearanceSubtitle1" |
209 |
| - android:textColor="?attr/colorOnPrimarySurface" |
210 |
| - tools:text="Sandra Adams" /> |
211 |
| - |
212 |
| - </LinearLayout> |
213 |
| - |
214 |
| - </com.google.android.material.card.MaterialCardView> |
215 |
| - |
216 | 217 | <com.google.android.material.floatingactionbutton.FloatingActionButton
|
217 | 218 | android:id="@+id/fab"
|
218 | 219 | android:layout_width="wrap_content"
|
|
0 commit comments