UI improvements
This commit is contained in:
parent
163b285ce5
commit
f5e50cf481
4 changed files with 107 additions and 50 deletions
|
@ -1,48 +1,72 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<androidx.cardview.widget.CardView 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"
|
||||
android:id="@+id/musicItem"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/material_dynamic_neutral100"
|
||||
android:layout_margin="10dp"
|
||||
app:cardBackgroundColor="@color/material_dynamic_neutral100"
|
||||
android:padding="10dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/musicArtwork"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:contentDescription="@string/music_artwork"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
app:layout_constraintTop_toTopOf="@id/musicArtwork"
|
||||
app:layout_constraintLeft_toRightOf="@id/musicArtwork"
|
||||
android:text="@string/untitled_track"
|
||||
android:textStyle="bold" />
|
||||
<ImageView
|
||||
android:id="@+id/musicArtwork"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:contentDescription="@string/music_artwork_description"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicYear"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/default_year"
|
||||
android:textStyle="bold|italic"
|
||||
android:alpha=".5"
|
||||
app:layout_constraintLeft_toRightOf="@id/musicTitle"
|
||||
app:layout_constraintTop_toTopOf="@id/musicTitle"
|
||||
android:layout_marginStart="5dp" />
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
app:layout_constraintBottom_toBottomOf="@id/musicArtwork"
|
||||
app:layout_constraintLeft_toRightOf="@id/musicArtwork"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/musicArtwork">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicArtist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/musicTitle"
|
||||
app:layout_constraintTop_toBottomOf="@id/musicTitle"
|
||||
android:text="@string/unknown_artist" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<TextView
|
||||
android:id="@+id/musicTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/default_release_title"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicYear"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:alpha=".6"
|
||||
android:text="@string/default_year"
|
||||
android:textStyle="bold|italic"
|
||||
app:layout_constraintLeft_toRightOf="@id/musicTitle"
|
||||
app:layout_constraintTop_toTopOf="@id/musicTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicArtist"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/default_artist"
|
||||
app:layout_constraintLeft_toLeftOf="@id/musicTitle"
|
||||
app:layout_constraintTop_toBottomOf="@id/musicTitle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/musicType"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/default_release_type"
|
||||
app:layout_constraintLeft_toLeftOf="@id/musicArtist"
|
||||
app:layout_constraintTop_toBottomOf="@id/musicArtist" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
|
|
@ -1,8 +1,25 @@
|
|||
<resources>
|
||||
<string name="base_url">https://arimelody.me</string>
|
||||
<string name="app_name">AriDroid</string>
|
||||
<string name="untitled_track">Untitled Track</string>
|
||||
<string name="unknown_artist">Unknown Artist</string>
|
||||
|
||||
<string name="music_artwork_description">%s artwork</string>
|
||||
<string name="default_release_title">Untitled Release</string>
|
||||
<string name="default_track_title">Untitled Track</string>
|
||||
<string name="default_artist">Unknown Artist</string>
|
||||
<string name="default_year">2002</string>
|
||||
<string name="music_artwork">Music artwork</string>
|
||||
<string name="default_release_type">Release</string>
|
||||
<string name="default_release_track_count">0 tracks</string>
|
||||
|
||||
<string name="release_type_unknown">Unknown</string>
|
||||
<string name="release_type_single">Single</string>
|
||||
<string name="release_type_album">Album</string>
|
||||
<string name="release_type_ep">EP</string>
|
||||
<string name="release_type_lp">LP</string>
|
||||
<string name="release_type_compilation">Compilation</string>
|
||||
<string name="release_type_upcoming">Upcoming</string>
|
||||
|
||||
<plurals name="release_track_count">
|
||||
<item quantity="one">(%d track)</item>
|
||||
<item quantity="other">(%d tracks)</item>
|
||||
</plurals>
|
||||
</resources>
|
Loading…
Add table
Add a link
Reference in a new issue