2020-01-05 14:43:07 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-28 11:33:26 -04:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-05 14:43:07 -05:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/track"
|
2021-06-28 11:33:26 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
android:paddingVertical="8dp">
|
2020-01-05 14:43:07 -05:00
|
|
|
|
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"
|
2021-06-28 11:33:26 -04:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/logo_container"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:foreground="?attr/selectableItemBackground"
|
|
|
|
app:cardBackgroundColor="#2E51A2"
|
|
|
|
app:cardElevation="0dp"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.MaterialCardView.Tracker">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/track_logo"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:padding="4dp"
|
|
|
|
tools:src="@drawable/ic_tracker_mal" />
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
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
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/track_set"
|
|
|
|
style="?attr/borderlessButtonStyle"
|
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"
|
2021-06-28 11:33:26 -04:00
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:text="@string/add_tracking"
|
|
|
|
android:visibility="gone" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingHorizontal="16dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceSubtitle1"
|
|
|
|
tools:text="Title" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2020-04-12 22:00:19 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.MaterialCardView.Tracker">
|
2020-04-12 22:00:19 -04:00
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-06-28 11:33:26 -04:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingHorizontal="12dp"
|
|
|
|
android:paddingVertical="8dp">
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/middle_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_status"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
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"
|
2021-06-28 11:33:26 -04:00
|
|
|
android:background="?android:divider" />
|
2020-01-24 12:18:55 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_chapters"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
tools:text="12/24" />
|
2020-04-12 22:00:19 -04:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/vert_divider_2"
|
|
|
|
android:layout_width="1dp"
|
2021-05-25 09:03:56 -04:00
|
|
|
android:layout_height="match_parent"
|
2021-06-20 11:05:37 -04:00
|
|
|
android:background="?android:divider"/>
|
2020-04-12 22:00:19 -04:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_score"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
tools:text="10" />
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
</LinearLayout>
|
2021-05-25 09:03:56 -04:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<View
|
|
|
|
android:id="@+id/bottom_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
2021-05-25 09:03:56 -04:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
android:background="?android:divider" />
|
2021-01-14 17:37:54 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bottom_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_start_date"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
tools:text="4/16/2020" />
|
2021-01-14 17:37:54 -05:00
|
|
|
|
|
|
|
<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-06-28 11:33:26 -04:00
|
|
|
android:background="?android:divider" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/track_finish_date"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:foreground="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:padding="12dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
tools:text="4/16/2020" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2021-01-14 17:37:54 -05:00
|
|
|
|
|
|
|
|
2021-05-25 09:03:56 -04:00
|
|
|
</LinearLayout>
|
2020-03-09 16:27:23 -04:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2020-01-05 14:43:07 -05:00
|
|
|
|
2021-06-28 11:33:26 -04:00
|
|
|
</LinearLayout>
|