|
11 | 11 | android:paddingEnd="@dimen/medium_margin" |
12 | 12 | android:paddingBottom="@dimen/activity_margin"> |
13 | 13 |
|
14 | | - <ImageView |
15 | | - android:id="@+id/track_image" |
16 | | - android:layout_width="@dimen/song_image_size" |
17 | | - android:layout_height="@dimen/song_image_size" |
| 14 | + <RelativeLayout |
| 15 | + android:layout_width="match_parent" |
| 16 | + android:layout_height="match_parent" |
18 | 17 | android:layout_marginStart="@dimen/small_margin" |
19 | | - android:visibility="gone" |
20 | | - app:layout_constraintStart_toStartOf="parent" |
21 | | - app:layout_constraintTop_toTopOf="parent" /> |
| 18 | + app:layout_constraintEnd_toEndOf="parent"> |
22 | 19 |
|
23 | | - <com.simplemobiletools.commons.views.MyTextView |
24 | | - android:id="@+id/track_id" |
25 | | - android:layout_width="wrap_content" |
26 | | - android:layout_height="wrap_content" |
27 | | - android:ems="2" |
28 | | - android:gravity="end" |
29 | | - android:paddingEnd="@dimen/small_margin" |
30 | | - android:textSize="@dimen/bigger_text_size" |
31 | | - app:layout_constraintBottom_toBottomOf="parent" |
32 | | - app:layout_constraintStart_toEndOf="@+id/track_image" |
33 | | - app:layout_constraintTop_toTopOf="parent" |
34 | | - tools:text="1" /> |
| 20 | + <ImageView |
| 21 | + android:id="@+id/track_image" |
| 22 | + android:layout_width="@dimen/song_image_size" |
| 23 | + android:layout_height="@dimen/song_image_size" |
| 24 | + android:layout_centerVertical="true" |
| 25 | + android:visibility="gone" /> |
35 | 26 |
|
36 | | - <com.simplemobiletools.commons.views.MyTextView |
37 | | - android:id="@+id/track_title" |
38 | | - android:layout_width="0dp" |
39 | | - android:layout_height="wrap_content" |
40 | | - android:ellipsize="end" |
41 | | - android:maxLines="2" |
42 | | - android:paddingStart="@dimen/normal_margin" |
43 | | - android:textSize="@dimen/bigger_text_size" |
44 | | - app:layout_constraintBottom_toBottomOf="parent" |
45 | | - app:layout_constraintEnd_toStartOf="@+id/track_duration" |
46 | | - app:layout_constraintStart_toEndOf="@+id/track_id" |
47 | | - app:layout_constraintTop_toTopOf="parent" |
48 | | - tools:text="Track title" /> |
| 27 | + <com.simplemobiletools.commons.views.MyTextView |
| 28 | + android:id="@+id/track_id" |
| 29 | + android:layout_width="wrap_content" |
| 30 | + android:layout_height="wrap_content" |
| 31 | + android:layout_centerVertical="true" |
| 32 | + android:layout_toEndOf="@id/track_image" |
| 33 | + android:ems="2" |
| 34 | + android:gravity="end" |
| 35 | + android:paddingEnd="@dimen/small_margin" |
| 36 | + android:textSize="@dimen/bigger_text_size" |
| 37 | + tools:text="1" /> |
49 | 38 |
|
50 | | - <com.simplemobiletools.commons.views.MyTextView |
51 | | - android:id="@+id/track_duration" |
52 | | - android:layout_width="wrap_content" |
53 | | - android:layout_height="wrap_content" |
54 | | - android:paddingStart="@dimen/normal_margin" |
55 | | - android:paddingEnd="@dimen/medium_margin" |
56 | | - android:textSize="@dimen/bigger_text_size" |
57 | | - app:layout_constraintBottom_toBottomOf="parent" |
58 | | - app:layout_constraintEnd_toStartOf="@+id/track_drag_handle" |
59 | | - app:layout_constraintTop_toTopOf="parent" |
60 | | - tools:text="3:45" /> |
| 39 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 40 | + android:layout_width="match_parent" |
| 41 | + android:layout_height="wrap_content" |
| 42 | + android:layout_centerVertical="true" |
| 43 | + android:layout_toStartOf="@id/layout_duration_handle" |
| 44 | + android:layout_toEndOf="@id/track_id" |
| 45 | + android:paddingStart="@dimen/normal_margin" |
| 46 | + android:paddingEnd="@dimen/normal_margin"> |
61 | 47 |
|
62 | | - <ImageView |
63 | | - android:id="@+id/track_drag_handle" |
64 | | - android:layout_width="@dimen/song_image_size" |
65 | | - android:layout_height="@dimen/song_image_size" |
66 | | - android:padding="@dimen/medium_margin" |
67 | | - android:src="@drawable/ic_drag_handle_vector" |
68 | | - android:visibility="gone" |
69 | | - app:layout_constraintBottom_toBottomOf="parent" |
70 | | - app:layout_constraintEnd_toEndOf="parent" |
71 | | - app:layout_constraintTop_toTopOf="parent" /> |
| 48 | + <com.simplemobiletools.commons.views.MyTextView |
| 49 | + android:id="@+id/track_title" |
| 50 | + android:layout_width="0dp" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:ellipsize="end" |
| 53 | + android:maxLines="2" |
| 54 | + android:textSize="@dimen/bigger_text_size" |
| 55 | + app:layout_constraintBottom_toTopOf="@id/track_info" |
| 56 | + app:layout_constraintStart_toStartOf="parent" |
| 57 | + app:layout_constraintTop_toTopOf="parent" |
| 58 | + tools:text="Track title" /> |
72 | 59 |
|
| 60 | + <com.simplemobiletools.commons.views.MyTextView |
| 61 | + android:id="@+id/track_info" |
| 62 | + android:layout_width="0dp" |
| 63 | + android:layout_height="wrap_content" |
| 64 | + android:alpha="0.6" |
| 65 | + android:ellipsize="end" |
| 66 | + android:maxLines="1" |
| 67 | + android:textSize="@dimen/normal_text_size" |
| 68 | + app:layout_constraintBottom_toBottomOf="parent" |
| 69 | + app:layout_constraintEnd_toEndOf="parent" |
| 70 | + app:layout_constraintStart_toStartOf="parent" |
| 71 | + app:layout_constraintTop_toBottomOf="@id/track_title" |
| 72 | + tools:text="Track artist" /> |
| 73 | + |
| 74 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 75 | + |
| 76 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 77 | + android:id="@+id/layout_duration_handle" |
| 78 | + android:layout_width="wrap_content" |
| 79 | + android:layout_height="wrap_content" |
| 80 | + android:layout_alignParentEnd="true" |
| 81 | + android:layout_centerVertical="true"> |
| 82 | + |
| 83 | + <com.simplemobiletools.commons.views.MyTextView |
| 84 | + android:id="@+id/track_duration" |
| 85 | + android:layout_width="wrap_content" |
| 86 | + android:layout_height="wrap_content" |
| 87 | + android:paddingStart="@dimen/normal_margin" |
| 88 | + android:paddingEnd="@dimen/medium_margin" |
| 89 | + android:textSize="@dimen/bigger_text_size" |
| 90 | + app:layout_constraintBottom_toBottomOf="parent" |
| 91 | + app:layout_constraintEnd_toStartOf="@id/track_drag_handle" |
| 92 | + app:layout_constraintTop_toTopOf="parent" |
| 93 | + tools:text="3:45" /> |
| 94 | + |
| 95 | + <ImageView |
| 96 | + android:id="@+id/track_drag_handle" |
| 97 | + android:layout_width="@dimen/song_image_size" |
| 98 | + android:layout_height="@dimen/song_image_size" |
| 99 | + android:padding="@dimen/medium_margin" |
| 100 | + android:src="@drawable/ic_drag_handle_vector" |
| 101 | + android:visibility="gone" |
| 102 | + app:layout_constraintBottom_toBottomOf="parent" |
| 103 | + app:layout_constraintEnd_toEndOf="parent" |
| 104 | + app:layout_constraintTop_toTopOf="parent" /> |
| 105 | + |
| 106 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 107 | + </RelativeLayout> |
73 | 108 | </androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments