Skip to content

Commit c0345b1

Browse files
authored
use smaller font at displaying track album/artist
1 parent 7bd7f40 commit c0345b1

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

app/src/main/res/layout/item_track.xml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
android:id="@+id/track_frame"
66
android:layout_width="match_parent"
77
android:layout_height="wrap_content"
8-
android:background="?attr/selectableItemBackground"
9-
android:clickable="true"
10-
android:focusable="true"
11-
android:foreground="@drawable/selector"
8+
android:layout_marginBottom="@dimen/tiny_margin"
129
android:paddingStart="@dimen/medium_margin"
1310
android:paddingTop="@dimen/activity_margin"
1411
android:paddingEnd="@dimen/medium_margin"
@@ -18,7 +15,7 @@
1815
android:layout_width="match_parent"
1916
android:layout_height="match_parent"
2017
android:layout_marginStart="@dimen/small_margin"
21-
app:layout_constraintEnd_toEndOf="parent" >
18+
app:layout_constraintEnd_toEndOf="parent">
2219

2320
<ImageView
2421
android:id="@+id/track_image"
@@ -31,22 +28,22 @@
3128
android:id="@+id/track_id"
3229
android:layout_width="wrap_content"
3330
android:layout_height="wrap_content"
31+
android:layout_centerVertical="true"
32+
android:layout_toEndOf="@id/track_image"
3433
android:ems="2"
3534
android:gravity="end"
3635
android:paddingEnd="@dimen/small_margin"
3736
android:textSize="@dimen/bigger_text_size"
38-
android:layout_toEndOf="@id/track_image"
39-
android:layout_centerVertical="true"
4037
tools:text="1" />
4138

4239
<androidx.constraintlayout.widget.ConstraintLayout
4340
android:layout_width="match_parent"
4441
android:layout_height="wrap_content"
45-
android:paddingStart="@dimen/normal_margin"
46-
android:paddingEnd="@dimen/normal_margin"
47-
android:layout_toEndOf="@id/track_id"
42+
android:layout_centerVertical="true"
4843
android:layout_toStartOf="@id/layout_duration_handle"
49-
android:layout_centerVertical="true">
44+
android:layout_toEndOf="@id/track_id"
45+
android:paddingStart="@dimen/normal_margin"
46+
android:paddingEnd="@dimen/normal_margin">
5047

5148
<com.simplemobiletools.commons.views.MyTextView
5249
android:id="@+id/track_title"
@@ -65,9 +62,9 @@
6562
android:layout_width="0dp"
6663
android:layout_height="wrap_content"
6764
android:alpha="0.6"
68-
android:maxLines="1"
69-
android:textSize="@dimen/medium_text_size"
7065
android:ellipsize="end"
66+
android:maxLines="1"
67+
android:textSize="@dimen/normal_text_size"
7168
app:layout_constraintBottom_toBottomOf="parent"
7269
app:layout_constraintEnd_toEndOf="parent"
7370
app:layout_constraintStart_toStartOf="parent"
@@ -90,9 +87,9 @@
9087
android:paddingStart="@dimen/normal_margin"
9188
android:paddingEnd="@dimen/medium_margin"
9289
android:textSize="@dimen/bigger_text_size"
90+
app:layout_constraintBottom_toBottomOf="parent"
9391
app:layout_constraintEnd_toStartOf="@id/track_drag_handle"
9492
app:layout_constraintTop_toTopOf="parent"
95-
app:layout_constraintBottom_toBottomOf="parent"
9693
tools:text="3:45" />
9794

9895
<ImageView
@@ -102,12 +99,10 @@
10299
android:padding="@dimen/medium_margin"
103100
android:src="@drawable/ic_drag_handle_vector"
104101
android:visibility="gone"
102+
app:layout_constraintBottom_toBottomOf="parent"
105103
app:layout_constraintEnd_toEndOf="parent"
106-
app:layout_constraintTop_toTopOf="parent"
107-
app:layout_constraintBottom_toBottomOf="parent" />
104+
app:layout_constraintTop_toTopOf="parent" />
108105

109106
</androidx.constraintlayout.widget.ConstraintLayout>
110-
111107
</RelativeLayout>
112-
113108
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)