pull/32/head
kunfei 5 years ago
parent f8c459640e
commit 2b86596467
  1. 4
      app/src/main/java/io/legado/app/ui/readbook/config/BgTextConfigDialog.kt
  2. 5
      app/src/main/res/layout/item_bg_image.xml

@ -138,8 +138,8 @@ class BgTextConfigDialog : DialogFragment() {
with(holder.itemView) {
ImageLoader.load(context, context.assets.open("bg/$item").readBytes())
.centerCrop()
.setAsFile(iv_bg)
tv_name.text = item
.setAsBitmap(iv_bg)
tv_name.text = item.substring(0, item.lastIndexOf("."))
}
}

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="60dp"
android:layout_width="66dp"
android:layout_height="match_parent"
android:padding="3dp"
android:padding="2dp"
android:orientation="vertical">
<ImageView
@ -17,6 +17,7 @@
android:id="@+id/tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:gravity="center" />
</LinearLayout>
Loading…
Cancel
Save