pull/53/head
parent
182e1fd115
commit
997b9a994a
@ -0,0 +1,16 @@ |
||||
package io.legado.app.ui.changecover |
||||
|
||||
import android.content.Context |
||||
import io.legado.app.R |
||||
import io.legado.app.base.adapter.ItemViewHolder |
||||
import io.legado.app.base.adapter.SimpleRecyclerAdapter |
||||
import io.legado.app.data.entities.Book |
||||
|
||||
|
||||
class CoverAdapter(context: Context) : SimpleRecyclerAdapter<Book>(context, R.layout.item_cover) { |
||||
|
||||
override fun convert(holder: ItemViewHolder, item: Book, payloads: MutableList<Any>) { |
||||
|
||||
} |
||||
|
||||
} |
@ -0,0 +1,40 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:padding="16dp" |
||||
android:clickable="true" |
||||
android:focusable="true" |
||||
tools:ignore="UnusedAttribute"> |
||||
|
||||
<io.legado.app.ui.widget.image.CoverImageView |
||||
android:id="@+id/iv_cover" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="100dp" |
||||
android:contentDescription="@string/img_cover" |
||||
android:scaleType="centerCrop" |
||||
android:src="@drawable/image_cover_default" |
||||
android:transitionName="img_cover" |
||||
app:layout_constraintLeft_toLeftOf="parent" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="UnusedAttribute" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_source" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:includeFontPadding="false" |
||||
android:gravity="center" |
||||
android:singleLine="true" |
||||
android:text="@string/book_source" |
||||
android:textColor="@color/tv_text_default" |
||||
android:textSize="16sp" |
||||
app:layout_constraintLeft_toLeftOf="@+id/iv_cover" |
||||
app:layout_constraintRight_toRightOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toBottomOf="@+id/iv_cover" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue