160 lines
5.9 KiB
XML
160 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Pupil, Hitomi.la viewer for Android
|
|
~ Copyright (C) 2019 tom5079
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<xyz.quaver.pupil.ui.view.ProgressCard
|
|
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/galleryblock_card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clipChildren="true"
|
|
app:cardCornerRadius="4dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
app:cardUseCompatPadding="true"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.github.piasy.biv.view.BigImageView
|
|
android:id="@+id/galleryblock_thumbnail"
|
|
android:layout_width="150dp"
|
|
android:layout_height="0dp"
|
|
android:contentDescription="@string/galleryblock_thumbnail_description"
|
|
android:adjustViewBounds="true"
|
|
android:clickable="false"
|
|
app:layout_constraintHeight_default="spread"
|
|
app:layout_constraintHeight_min="200dp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/barrier"/>
|
|
|
|
<TextView
|
|
style="@style/TextAppearance.AppCompat.Headline"
|
|
android:id="@+id/galleryblock_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
style="@style/TextAppearance.AppCompat.Medium"
|
|
android:id="@+id/galleryblock_artist"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/galleryblock_series"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_artist"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail"
|
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/galleryblock_type"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_series"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail" />
|
|
|
|
<TextView
|
|
android:id="@+id/galleryblock_language"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_type"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail" />
|
|
|
|
<xyz.quaver.pupil.ui.view.TagChipGroup
|
|
android:id="@+id/galleryblock_tag_group"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
app:chipSpacing="4dp"
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_language"
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail"
|
|
app:layout_constraintRight_toRightOf="parent"/>
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
android:id="@+id/barrier"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:barrierDirection="bottom"
|
|
app:constraint_referenced_ids="galleryblock_thumbnail, galleryblock_tag_group"/>
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="?android:attr/listDivider"
|
|
app:layout_constraintTop_toBottomOf="@id/barrier"
|
|
android:layout_margin="8dp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/galleryblock_id"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
|
|
|
<TextView
|
|
android:id="@+id/galleryblock_pagecount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/galleryblock_favorite"
|
|
android:contentDescription="@string/app_name"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginRight="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
app:srcCompat="@drawable/ic_star_empty"
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</xyz.quaver.pupil.ui.view.ProgressCard> |