
Make a dedicated seekbar view so that does the layout magic necessary to have an adequate touch target while not taking up too much space. Isolating this makes handling the playback layout's view much easier.
45 lines
No EOL
1.9 KiB
XML
45 lines
No EOL
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<merge
|
|
tools:layout_height="wrap_content"
|
|
tools:layout_width="match_parent"
|
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
|
|
|
<SeekBar
|
|
android:id="@+id/playback_seek_bar"
|
|
style="@style/Widget.Auxio.SeekBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="@dimen/spacing_small"
|
|
android:paddingEnd="@dimen/spacing_small"
|
|
android:layout_marginBottom="@dimen/spacing_medium"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/playback_duration_current"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/spacing_small"
|
|
android:layout_marginStart="@dimen/spacing_small"
|
|
android:textColor="@color/sel_accented_secondary"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:text="11:38" />
|
|
|
|
<TextView
|
|
android:id="@+id/playback_song_duration"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/spacing_small"
|
|
android:layout_marginEnd="@dimen/spacing_small"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
tools:text="16:16" />
|
|
|
|
</merge>
|
|
</layout> |