2016-12-19 05:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<android.support.v7.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/track"
|
|
|
|
style="@style/Theme.Widget.CardView">
|
|
|
|
|
|
|
|
<android.support.constraint.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/logo"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
tools:background="#2E51A2"
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
|
|
|
|
<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-24 05:30:43 +08:00
|
|
|
<LinearLayout
|
2016-12-19 05:56:28 +08:00
|
|
|
android:id="@+id/title_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:text="@string/title"/>
|
2016-12-19 05:56:28 +08:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_title"
|
|
|
|
style="@style/TextAppearance.Medium.Button"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:layout_width="match_parent"
|
2016-12-19 05:56:28 +08:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:gravity="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="middle"
|
2016-12-19 05:56:28 +08:00
|
|
|
android:text="@string/action_edit" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
</LinearLayout>
|
2016-12-19 05:56:28 +08:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?android:attr/divider"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title_container"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
<LinearLayout
|
2016-12-19 05:56:28 +08:00
|
|
|
android:id="@+id/status_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider1"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
|
|
|
|
<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-24 05:30:43 +08:00
|
|
|
android:layout_width="match_parent"
|
2016-12-19 05:56:28 +08:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:gravity="end"
|
2016-12-19 05:56:28 +08:00
|
|
|
tools:text="Reading" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
</LinearLayout>
|
2016-12-19 05:56:28 +08:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?android:attr/divider"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/status_container"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
<LinearLayout
|
2016-12-19 05:56:28 +08:00
|
|
|
android:id="@+id/chapters_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider2"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
|
|
|
|
<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-24 05:30:43 +08:00
|
|
|
android:layout_width="match_parent"
|
2016-12-19 05:56:28 +08:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:gravity="end"
|
2016-12-19 05:56:28 +08:00
|
|
|
tools:text="12/24" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
</LinearLayout>
|
2016-12-19 05:56:28 +08:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/divider3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?android:attr/divider"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/chapters_container"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
<LinearLayout
|
2016-12-19 05:56:28 +08:00
|
|
|
android:id="@+id/score_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:background="?attr/selectable_list_drawable"
|
|
|
|
android:clickable="true"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider3"
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/logo"
|
|
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
|
|
|
|
<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-24 05:30:43 +08:00
|
|
|
android:layout_width="match_parent"
|
2016-12-19 05:56:28 +08:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-24 05:30:43 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:gravity="end"
|
2016-12-19 05:56:28 +08:00
|
|
|
tools:text="10" />
|
|
|
|
|
2017-02-24 05:30:43 +08:00
|
|
|
</LinearLayout>
|
2016-12-19 05:56:28 +08:00
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
|
|
</android.support.v7.widget.CardView>
|