mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-08 11:47:24 +01:00
f7c139030f
* Started working on MAL support * Added date picker UI * Replaced Date with Calendar * Added MAL remote update functionality * Join url methods listEntryUrl and editUrl * Removed unused methods * Renamed mangaEditPayload to mangaEditPostBody * Moved code to separate method * Uniformed code to project conventions * Removed wildcard import * Moved MyAnimeListTrack to private class * Improved MyAnimeListTrack name * Removed redundant code * Add start/finish date in local database * Fixed format and improved codestyle * Fixed typo and fixed TrackHolder's format * Improved code style * Ran linter * Add database updating methods * Change date format to fit new layout * Review Commits * Improve SetTrackReadingDatesDialog readability * Move private methods after public ones * Fixed SQL error * Fixed remove date button * Updated MaterialDesign methods to latest version * Replaced dismissDialog() with dialog.Dismiss() * Fixed wrong string resource usage.
214 lines
9.1 KiB
XML
214 lines
9.1 KiB
XML
<?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">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<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">
|
|
|
|
<ImageView
|
|
android:id="@+id/track_logo"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:src="@drawable/ic_tracker_mal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<Button
|
|
android:id="@+id/track_set"
|
|
style="@style/Theme.Widget.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:text="@string/add_tracking"
|
|
android:visibility="gone" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_title"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/list_item_selector"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:padding="16dp"
|
|
tools:text="Title" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/track_details"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<View
|
|
android:id="@+id/top_divider"
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:alpha="0.25"
|
|
android:background="?android:attr/textColorHint"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_status"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
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_toStartOf="@+id/vert_divider_1"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/top_divider"
|
|
tools:text="Reading" />
|
|
|
|
<View
|
|
android:id="@+id/vert_divider_1"
|
|
android:layout_width="1dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:alpha="0.25"
|
|
android:background="?android:attr/textColorHint"
|
|
app:layout_constraintBottom_toTopOf="@+id/bottom_divider"
|
|
app:layout_constraintEnd_toStartOf="@+id/track_chapters"
|
|
app:layout_constraintStart_toEndOf="@+id/track_status"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_chapters"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
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_toStartOf="@+id/vert_divider_2"
|
|
app:layout_constraintStart_toEndOf="@+id/vert_divider_1"
|
|
app:layout_constraintTop_toBottomOf="@+id/top_divider"
|
|
tools:text="12/24" />
|
|
|
|
<View
|
|
android:id="@+id/vert_divider_2"
|
|
android:layout_width="1dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:alpha="0.25"
|
|
android:background="?android:attr/textColorHint"
|
|
app:layout_constraintBottom_toTopOf="@+id/bottom_divider"
|
|
app:layout_constraintEnd_toStartOf="@+id/track_score"
|
|
app:layout_constraintStart_toEndOf="@+id/track_chapters"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_score"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
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_constraintStart_toEndOf="@+id/vert_divider_2"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/top_divider"
|
|
tools:text="10" />
|
|
|
|
<View
|
|
android:id="@+id/bottom_divider"
|
|
android:layout_width="0dp"
|
|
android:layout_height="1dp"
|
|
android:alpha="0.25"
|
|
android:background="?android:attr/textColorHint"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/track_score" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_start_date"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
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_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/vert_divider_3"
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_divider"
|
|
tools:text="4/16/2020" />
|
|
|
|
<View
|
|
android:id="@+id/vert_divider_3"
|
|
android:layout_width="1dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:alpha="0.25"
|
|
android:background="?android:attr/textColorHint"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/track_start_date"
|
|
app:layout_constraintEnd_toStartOf="@+id/track_finish_date"
|
|
app:layout_constraintTop_toTopOf="@+id/bottom_divider" />
|
|
|
|
<TextView
|
|
android:id="@+id/track_finish_date"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
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_constraintStart_toEndOf="@+id/vert_divider_3"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/bottom_divider"
|
|
tools:text="4/16/2020" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|