|
|
|
|
@@ -25,7 +25,8 @@
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
|
app:cardCornerRadius="8dp"
|
|
|
|
|
android:clipChildren="true">
|
|
|
|
|
android:clipChildren="true"
|
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
|
|
<com.daimajia.swipe.SwipeLayout
|
|
|
|
|
android:id="@+id/galleryblock_swipe_layout"
|
|
|
|
|
@@ -70,169 +71,156 @@
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/galleryblock_primary"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:foreground="?attr/selectableItemBackground"
|
|
|
|
|
android:focusable="true"
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
|
|
|
android:id="@+id/galleryblock_progressbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
android:layout_height="4dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
|
android:id="@+id/galleryblock_progressbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="4dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/galleryblock_progress_complete"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="4dp"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
|
android:contentDescription="@string/reader_imageview_description"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/galleryblock_progress_complete"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="4dp"
|
|
|
|
|
android:visibility="invisible"
|
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
|
android:contentDescription="@string/reader_imageview_description"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/galleryblock_thumbnail"
|
|
|
|
|
android:layout_width="150dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:contentDescription="@string/galleryblock_thumbnail_description"
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_progressbar"/>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/galleryblock_thumbnail"
|
|
|
|
|
android:layout_width="150dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:contentDescription="@string/galleryblock_thumbnail_description"
|
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_progressbar"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
<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_toBottomOf="@id/galleryblock_progressbar"/>
|
|
|
|
|
|
|
|
|
|
<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_marginStart="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
|
|
|
|
|
style="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
|
android:id="@+id/galleryblock_artist"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
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_series"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_artist"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/galleryblock_thumbnail"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="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_type"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_series"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/galleryblock_thumbnail" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/galleryblock_language"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_type"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/galleryblock_padding"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/galleryblock_thumbnail" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/galleryblock_padding"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_language"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/galleryblock_tag_group"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
|
|
|
android:id="@+id/galleryblock_tag_group"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
app:chipSpacing="4dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_padding"
|
|
|
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
<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_constraintBottom_toTopOf="@id/galleryblock_padding"
|
|
|
|
|
app:layout_constraintLeft_toRightOf="@id/galleryblock_thumbnail" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:id="@+id/galleryblock_padding"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/galleryblock_language"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/galleryblock_tag_group"/>
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
|
|
|
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_padding"
|
|
|
|
|
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:layout_margin="8dp"
|
|
|
|
|
android:background="@android:color/darker_gray"/>
|
|
|
|
|
android:background="@color/light_gray"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/barrier"
|
|
|
|
|
android:layout_margin="8dp"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/galleryblock_id"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
|
android:paddingRight="8dp"
|
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:layout_marginBottom="8dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/galleryblock_id"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
<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_toRightOf="parent"
|
|
|
|
|
app:layout_constraintRight_toLeftOf="parent" />
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
|
<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" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/galleryblock_pagecount"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="1dp"
|
|
|
|
|
android:layout_weight="1"/>
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/galleryblock_favorite"
|
|
|
|
|
android:contentDescription="@string/app_name"
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
app:srcCompat="@drawable/ic_star_empty"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
</com.daimajia.swipe.SwipeLayout>
|
|
|
|
|
|
|
|
|
|
|