2016-12-18 22:56:28 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-12-18 22:56:28 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/track"
|
2017-05-16 10:18:46 +02:00
|
|
|
style="@style/Theme.Widget.CardView.Item"
|
|
|
|
android:padding="0dp">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<FrameLayout
|
2018-02-17 13:04:49 +01:00
|
|
|
android:id="@+id/logo_container"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="0dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2016-12-18 22:56:28 +01:00
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2018-02-17 13:04:49 +01:00
|
|
|
android:clickable="true"
|
2017-05-16 10:18:46 +02:00
|
|
|
tools:background="#2E51A2">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/track_logo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
tools:src="@drawable/mal" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
<LinearLayout
|
2016-12-18 22:56:28 +01:00
|
|
|
android:id="@+id/title_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:padding="16dp"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:text="@string/title" />
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_title"
|
|
|
|
style="@style/TextAppearance.Medium.Button"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_marginLeft="4dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:ellipsize="middle"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:gravity="end"
|
|
|
|
android:maxLines="1"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:text="@string/action_edit" />
|
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
</LinearLayout>
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:background="?android:attr/divider"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2016-12-18 22:56:28 +01:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title_container" />
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
<LinearLayout
|
2016-12-18 22:56:28 +01:00
|
|
|
android:id="@+id/status_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:padding="16dp"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider1">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/status" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_status"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_marginLeft="4dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginStart="4dp"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:gravity="end"
|
2016-12-18 22:56:28 +01:00
|
|
|
tools:text="Reading" />
|
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
</LinearLayout>
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:background="?android:attr/divider"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2016-12-18 22:56:28 +01:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/status_container" />
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
<LinearLayout
|
2016-12-18 22:56:28 +01:00
|
|
|
android:id="@+id/chapters_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:padding="16dp"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider2">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/chapters" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_chapters"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_marginLeft="4dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginStart="4dp"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:gravity="end"
|
2016-12-18 22:56:28 +01:00
|
|
|
tools:text="12/24" />
|
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
</LinearLayout>
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:background="?android:attr/divider"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2016-12-18 22:56:28 +01:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/chapters_container" />
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
<LinearLayout
|
2016-12-18 22:56:28 +01:00
|
|
|
android:id="@+id/score_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:padding="16dp"
|
2018-02-17 13:04:49 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo_container"
|
2017-05-16 10:18:46 +02:00
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider3">
|
2016-12-18 22:56:28 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/score" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_score"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_width="match_parent"
|
2016-12-18 22:56:28 +01:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:layout_marginLeft="4dp"
|
2017-05-16 10:18:46 +02:00
|
|
|
android:layout_marginStart="4dp"
|
2017-02-23 22:30:43 +01:00
|
|
|
android:gravity="end"
|
2016-12-18 22:56:28 +01:00
|
|
|
tools:text="10" />
|
|
|
|
|
2017-02-23 22:30:43 +01:00
|
|
|
</LinearLayout>
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2016-12-18 22:56:28 +01:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
</androidx.cardview.widget.CardView>
|