506 lines
No EOL
20 KiB
XML
506 lines
No EOL
20 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/userListContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="24dp"
|
|
android:paddingEnd="24dp">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/profileAnimeList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:layout_margin="8dp"
|
|
app:boxStrokeColor="@color/text_input_layout_stroke_color"
|
|
app:cardCornerRadius="16dp"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/profileMangaList"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintWidth_max="256dp"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/profileAnimeListImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.6"
|
|
android:background="@color/bg_black" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/anime_list"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/bg_white"
|
|
android:textSize="16sp" />
|
|
|
|
<View
|
|
android:layout_width="64dp"
|
|
android:layout_height="2dp"
|
|
android:layout_gravity="center"
|
|
android:background="?attr/colorPrimary" />
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/profileMangaList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:layout_margin="8dp"
|
|
android:layout_marginBottom="16dp"
|
|
app:boxStrokeColor="@color/text_input_layout_stroke_color"
|
|
app:cardCornerRadius="16dp"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/profileAnimeList"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintWidth_max="256dp"
|
|
tools:visibility="visible">
|
|
|
|
<ImageView
|
|
android:id="@+id/profileMangaListImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.6"
|
|
android:background="@color/bg_black" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="@string/manga_list"
|
|
android:textAllCaps="true"
|
|
android:textColor="@color/bg_white"
|
|
android:textSize="16sp" />
|
|
|
|
<View
|
|
android:layout_width="64dp"
|
|
android:layout_height="2dp"
|
|
android:layout_gravity="center"
|
|
android:background="?attr/colorPrimary" />
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/userStatsContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/profileUserStatsTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="Stats"
|
|
android:textSize="16sp"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TableLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingStart="32dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="32dp"
|
|
android:paddingBottom="16dp"
|
|
tools:ignore="HardcodedText">
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Episodes watched"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsEpisodesWatched"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Days watched"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsDaysWatched"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Total Anime"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsTotalAnime"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Anime Mean Score"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsAnimeMeanScore"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Chapter read"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsChaptersRead"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Volume read"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsVolumeRead"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Total Manga"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsTotalManga"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
|
|
<TableRow
|
|
android:layout_width="match_parent"
|
|
android:layout_height="24dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:text="Manga Mean Score"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/statsMangaMeanScore"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:textAlignment="textEnd" />
|
|
</TableRow>
|
|
</TableLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/userInfoContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:id="@+id/profileUserBioTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:text="Bio"
|
|
android:textSize="16sp"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<TextView
|
|
android:id="@+id/profileUserBio"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:padding="16dp"
|
|
tools:text="@string/slogan"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileFavAnimeContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/profileFavAnime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:padding="8dp"
|
|
android:text="@string/fav_anime"
|
|
android:textSize="16sp" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="250dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileFavAnimeEmpty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="250dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="32dp"
|
|
android:src="@drawable/ic_round_heart_broken_24"
|
|
app:tint="?attr/colorPrimary"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:paddingStart="32dp"
|
|
android:paddingEnd="32dp"
|
|
android:text="User has no favorite anime"
|
|
android:textAlignment="center"
|
|
tools:ignore="TextContrastCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/profileFavAnimeProgressBar"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="90dp" />
|
|
|
|
<ani.dantotsu.FadingEdgeRecyclerView
|
|
android:id="@+id/profileFavAnimeRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="20dp"
|
|
android:requiresFadingEdge="horizontal"
|
|
tools:itemCount="4"
|
|
tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:listitem="@layout/item_media_compact"
|
|
tools:orientation="horizontal" />
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileFavMangaContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/profileFavManga"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:padding="8dp"
|
|
android:text="@string/fav_manga"
|
|
android:textSize="16sp" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="250dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileFavMangaEmpty"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="250dp"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:ignore="UseCompoundDrawables">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="32dp"
|
|
android:src="@drawable/ic_round_heart_broken_24"
|
|
app:tint="?attr/colorPrimary"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="0.58"
|
|
android:paddingStart="32dp"
|
|
android:paddingEnd="32dp"
|
|
android:text="User has no favorite manga."
|
|
android:textAlignment="center"
|
|
tools:ignore="TextContrastCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/profileFavMangaProgressBar"
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="90dp" />
|
|
|
|
<ani.dantotsu.FadingEdgeRecyclerView
|
|
android:id="@+id/profileFavMangaRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="20dp"
|
|
android:paddingEnd="20dp"
|
|
android:requiresFadingEdge="horizontal"
|
|
tools:itemCount="4"
|
|
tools:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:listitem="@layout/item_media_compact"
|
|
tools:orientation="horizontal" />
|
|
</FrameLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |