2020-01-05 14:43:07 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<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/track"
|
|
|
|
style="@style/Theme.Widget.CardView.Item"
|
|
|
|
android:padding="0dp">
|
|
|
|
|
2020-03-10 21:17:39 -04:00
|
|
|
<LinearLayout
|
2020-01-05 14:43:07 -05:00
|
|
|
android:layout_width="match_parent"
|
2020-03-10 21:17:39 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
<LinearLayout
|
2020-01-05 14:43:07 -05:00
|
|
|
android:id="@+id/logo_container"
|
|
|
|
android:layout_width="48dp"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_height="wrap_content"
|
2020-01-24 12:18:55 -05:00
|
|
|
android:clickable="true"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:focusable="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="4dp"
|
2020-01-05 14:43:07 -05:00
|
|
|
tools:background="#2E51A2">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/track_logo"
|
|
|
|
android:layout_width="wrap_content"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_height="48dp"
|
2020-04-07 16:58:08 -04:00
|
|
|
tools:src="@drawable/ic_tracker_mal" />
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/track_set"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/action_edit"
|
|
|
|
android:padding="8dp"
|
2020-03-14 16:04:14 -04:00
|
|
|
app:srcCompat="@drawable/ic_edit_24dp"
|
2020-03-10 21:13:55 -04:00
|
|
|
app:tint="@color/md_white_1000_50" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2020-01-24 12:18:55 -05:00
|
|
|
android:id="@+id/track_details"
|
2020-01-05 14:43:07 -05:00
|
|
|
android:layout_width="0dp"
|
2020-03-10 21:17:39 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1">
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-01-24 12:18:55 -05:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_container"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_width="match_parent"
|
2020-01-05 14:43:07 -05:00
|
|
|
android:layout_height="wrap_content"
|
2020-03-11 19:08:57 -04:00
|
|
|
android:background="@drawable/list_item_selector"
|
2020-01-24 12:18:55 -05:00
|
|
|
android:clickable="true"
|
2020-03-09 16:27:23 -04:00
|
|
|
android:focusable="true"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-01-24 12:18:55 -05: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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2020-01-24 12:18:55 -05:00
|
|
|
tools:text="Reading" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/divider"
|
2020-03-09 16:27:23 -04:00
|
|
|
android:layout_width="0dp"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:alpha="0.25"
|
|
|
|
android:background="?android:attr/textColorHint"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/status_container" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
|
|
|
<LinearLayout
|
2020-03-09 16:27:23 -04:00
|
|
|
android:layout_width="0dp"
|
2020-01-05 14:43:07 -05:00
|
|
|
android:layout_height="wrap_content"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/divider">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/chapters_container"
|
|
|
|
android:layout_width="0dp"
|
2020-01-24 12:18:55 -05:00
|
|
|
android:layout_height="wrap_content"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_weight="1"
|
2020-03-11 19:08:57 -04:00
|
|
|
android:background="@drawable/list_item_selector"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:gravity="end"
|
|
|
|
tools:text="12/24" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/score_container"
|
|
|
|
android:layout_width="0dp"
|
2020-01-24 12:18:55 -05:00
|
|
|
android:layout_height="wrap_content"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_weight="1"
|
2020-03-11 19:08:57 -04:00
|
|
|
android:background="@drawable/list_item_selector"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="16dp">
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:gravity="end"
|
|
|
|
tools:text="10" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-01-24 12:18:55 -05:00
|
|
|
|
|
|
|
</LinearLayout>
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-03-09 16:27:23 -04:00
|
|
|
|
2020-03-10 21:17:39 -04:00
|
|
|
</LinearLayout>
|
2020-01-05 14:43:07 -05:00
|
|
|
|
|
|
|
</androidx.cardview.widget.CardView>
|