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"
|
2021-06-19 15:45:16 -04:00
|
|
|
style="@style/Widget.Tachiyomi.CardView.Item"
|
2020-01-05 14:43:07 -05:00
|
|
|
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"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:orientation="vertical">
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-03-10 21:13:55 -04:00
|
|
|
<LinearLayout
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_width="match_parent"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:orientation="horizontal">
|
2020-03-10 21:13:55 -04:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/logo_container"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:padding="4dp"
|
|
|
|
tools:background="#2E51A2">
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/track_logo"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
tools:src="@drawable/ic_tracker_mal" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2020-01-24 12:18:55 -05:00
|
|
|
<LinearLayout
|
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-10 21:13:55 -04:00
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/track_set"
|
2021-06-19 15:45:16 -04:00
|
|
|
style="?attr/borderlessButtonStyle"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_width="match_parent"
|
2020-01-24 12:18:55 -05:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:text="@string/add_tracking"
|
|
|
|
android:visibility="gone" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
|
|
|
<TextView
|
2020-04-12 22:00:19 -04:00
|
|
|
android:id="@+id/track_title"
|
2020-01-24 12:18:55 -05:00
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:background="@drawable/list_item_selector"
|
2020-03-10 21:13:55 -04:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:padding="16dp"
|
|
|
|
tools:text="Title" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/top_divider"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_width="match_parent"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_height="1dp"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider" />
|
2020-04-12 22:00:19 -04:00
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/middle_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_status"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_weight="1"
|
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-04-12 22:00:19 -04:00
|
|
|
android:background="@drawable/list_item_selector"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="16dp"
|
|
|
|
tools:text="Reading" />
|
2020-03-10 21:13:55 -04:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/vert_divider_1"
|
|
|
|
android:layout_width="1dp"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_height="match_parent"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider"
|
2020-04-12 22:00:19 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_chapters"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_weight="1"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/list_item_selector"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="16dp"
|
|
|
|
tools:text="12/24" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vert_divider_2"
|
|
|
|
android:layout_width="1dp"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_height="match_parent"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider"/>
|
2020-04-12 22:00:19 -04:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_score"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_weight="1"
|
2020-04-12 22:00:19 -04:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/list_item_selector"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="16dp"
|
|
|
|
tools:text="10" />
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/bottom_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider" />
|
2021-05-25 09:03:56 -04:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottom_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2021-01-14 17:37:54 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_start_date"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_weight="1"
|
2021-01-14 17:37:54 -05:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/list_item_selector"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="16dp"
|
|
|
|
tools:text="4/16/2020" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vert_divider_3"
|
|
|
|
android:layout_width="1dp"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_height="match_parent"
|
2021-01-14 17:37:54 -05:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="8dp"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider"
|
2021-05-25 09:03:56 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
2021-01-14 17:37:54 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_finish_date"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_weight="1"
|
2021-01-14 17:37:54 -05:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/list_item_selector"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="16dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-05-22 12:02:49 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/vert_divider_3"
|
2021-01-14 17:37:54 -05:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_divider"
|
|
|
|
tools:text="4/16/2020" />
|
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
</LinearLayout>
|
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>
|