|
18 | 18 | android:textAppearance="?attr/textAppearanceHeadlineMedium"
|
19 | 19 | tools:text="Sweet Revenge" />
|
20 | 20 |
|
21 |
| - <TextView |
22 |
| - android:id="@+id/artistNameTextView" |
| 21 | + <LinearLayout |
23 | 22 | android:layout_width="match_parent"
|
24 | 23 | android:layout_height="wrap_content"
|
25 |
| - android:drawablePadding="8dp" |
26 | 24 | android:gravity="center_vertical"
|
27 |
| - android:paddingVertical="4dp" |
28 |
| - android:paddingStart="0dp" |
29 |
| - android:paddingEnd="4dp" |
30 |
| - android:textAppearance="?attr/textAppearanceLabelLarge" |
31 |
| - android:textColor="@color/textview_pressed" |
32 |
| - app:backgroundTint="@android:color/transparent" |
33 |
| - app:drawableStartCompat="@drawable/ic_person" |
34 |
| - app:drawableTint="@color/textview_pressed" |
35 |
| - tools:text="Ryuichi Sakamoto" /> |
| 25 | + android:orientation="horizontal"> |
36 | 26 |
|
37 |
| - <TextView |
38 |
| - android:id="@+id/yearTextView" |
39 |
| - android:layout_width="match_parent" |
40 |
| - android:layout_height="wrap_content" |
41 |
| - android:textAppearance="?attr/textAppearanceLabelLarge" |
42 |
| - android:textColor="?attr/colorOnSurfaceVariant" |
43 |
| - android:visibility="gone" |
44 |
| - tools:text="1994" |
45 |
| - tools:visibility="visible" /> |
| 27 | + <LinearLayout |
| 28 | + android:layout_width="0dp" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:layout_weight="1" |
| 31 | + android:orientation="vertical"> |
46 | 32 |
|
47 |
| - <TextView |
48 |
| - android:id="@+id/tracksInfoTextView" |
49 |
| - android:layout_width="match_parent" |
50 |
| - android:layout_height="wrap_content" |
51 |
| - android:textAppearance="?attr/textAppearanceLabelLarge" |
52 |
| - android:textColor="?attr/colorOnSurfaceVariant" |
53 |
| - tools:text="7 tracks, 51 minutes" /> |
| 33 | + <TextView |
| 34 | + android:id="@+id/artistNameTextView" |
| 35 | + android:layout_width="match_parent" |
| 36 | + android:layout_height="wrap_content" |
| 37 | + android:drawablePadding="8dp" |
| 38 | + android:gravity="center_vertical" |
| 39 | + android:paddingVertical="4dp" |
| 40 | + android:paddingStart="0dp" |
| 41 | + android:paddingEnd="4dp" |
| 42 | + android:textAppearance="?attr/textAppearanceLabelLarge" |
| 43 | + android:textColor="@color/textview_pressed" |
| 44 | + app:backgroundTint="@android:color/transparent" |
| 45 | + app:drawableStartCompat="@drawable/ic_person" |
| 46 | + app:drawableTint="@color/textview_pressed" |
| 47 | + tools:text="Ryuichi Sakamoto" /> |
| 48 | + |
| 49 | + <TextView |
| 50 | + android:id="@+id/yearTextView" |
| 51 | + android:layout_width="match_parent" |
| 52 | + android:layout_height="wrap_content" |
| 53 | + android:textAppearance="?attr/textAppearanceLabelLarge" |
| 54 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 55 | + android:visibility="gone" |
| 56 | + tools:text="1994" |
| 57 | + tools:visibility="visible" /> |
| 58 | + |
| 59 | + <TextView |
| 60 | + android:id="@+id/tracksInfoTextView" |
| 61 | + android:layout_width="match_parent" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:textAppearance="?attr/textAppearanceLabelLarge" |
| 64 | + android:textColor="?attr/colorOnSurfaceVariant" |
| 65 | + tools:text="7 tracks, 51 minutes" /> |
| 66 | + |
| 67 | + </LinearLayout> |
| 68 | + |
| 69 | + <com.google.android.material.card.MaterialCardView |
| 70 | + android:id="@+id/fileTypeMaterialCardView" |
| 71 | + style="@style/Widget.Material3.CardView.Filled" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_marginStart="16dp" |
| 75 | + android:visibility="gone" |
| 76 | + app:cardBackgroundColor="?attr/colorPrimaryContainer" |
| 77 | + app:cardCornerRadius="4dp" |
| 78 | + app:contentPaddingLeft="4dp" |
| 79 | + app:contentPaddingRight="4dp" |
| 80 | + tools:visibility="visible"> |
| 81 | + |
| 82 | + <TextView |
| 83 | + android:id="@+id/fileTypeTextView" |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="24dp" |
| 86 | + android:gravity="center" |
| 87 | + android:textAlignment="gravity" |
| 88 | + android:textAppearance="?attr/textAppearanceLabelMedium" |
| 89 | + android:textColor="?attr/colorOnPrimaryContainer" |
| 90 | + tools:text="FLAC / MPEG" /> |
| 91 | + |
| 92 | + </com.google.android.material.card.MaterialCardView> |
| 93 | + |
| 94 | + </LinearLayout> |
54 | 95 |
|
55 | 96 | </LinearLayout>
|
0 commit comments