
Fix a plethora of style issues that lead to a worse touch experience. I tried to optimize these solutions so that they didn't reduce the layout density too much. More updates may have to be made in the future.
57 lines
No EOL
2.4 KiB
XML
57 lines
No EOL
2.4 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"
|
|
tools:context=".detail.adapters.AlbumDetailAdapter.AlbumSongViewHolder">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="song"
|
|
type="org.oxycblt.auxio.music.Song" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
|
|
|
<TextView
|
|
android:id="@+id/song_track"
|
|
android:layout_width="wrap_content"
|
|
android:minWidth="@dimen/width_track_number"
|
|
android:layout_height="wrap_content"
|
|
android:contentDescription="@{@string/desc_track_number(song.track)}"
|
|
android:gravity="center"
|
|
android:maxLines="1"
|
|
android:text="@{String.valueOf(song.track)}"
|
|
android:textAlignment="center"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
android:textColor="?android:attr/textColorTertiary"
|
|
android:textSize="@dimen/text_size_large"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="1" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_name"
|
|
style="@style/Widget.TextView.Item.Primary"
|
|
android:text="@{song.name}"
|
|
app:layout_constraintBottom_toTopOf="@+id/song_duration"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/song_track"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="Song Name" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_duration"
|
|
style="@style/Widget.TextView.Item.Secondary"
|
|
android:text="@{song.formattedDuration}"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/song_track"
|
|
app:layout_constraintTop_toBottomOf="@+id/song_name"
|
|
tools:text="16:16" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |