
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.
48 lines
No EOL
1.9 KiB
XML
48 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"
|
|
tools:context=".recycler.viewholders.ArtistViewHolder">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="artist"
|
|
type="org.oxycblt.auxio.music.Artist" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout style="@style/ItemLayout">
|
|
|
|
<ImageView
|
|
android:id="@+id/artist_image"
|
|
style="@style/Widget.ImageView.Normal"
|
|
android:contentDescription="@{@string/desc_artist_image(artist.name)}"
|
|
app:artistImage="@{artist}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@drawable/ic_artist" />
|
|
|
|
<TextView
|
|
android:id="@+id/artist_name"
|
|
style="@style/Widget.TextView.Item.Primary"
|
|
android:text="@{artist.name}"
|
|
app:layout_constraintBottom_toTopOf="@+id/artist_details"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/artist_image"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="Artist Name" />
|
|
|
|
<TextView
|
|
android:id="@+id/artist_details"
|
|
style="@style/Widget.TextView.Item.Secondary"
|
|
app:artistCounts="@{artist}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/artist_image"
|
|
app:layout_constraintTop_toBottomOf="@+id/artist_name"
|
|
tools:text="2 Albums, 20 Songs" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |