pull/32/head
kunfei 5 years ago
parent 2b86596467
commit 195c681818
  1. BIN
      app/src/main/assets/bg/中国红.png
  2. BIN
      app/src/main/assets/bg/午后沙滩.jpg
  3. BIN
      app/src/main/assets/bg/宁静夜色.jpg
  4. BIN
      app/src/main/assets/bg/小清新.jpg
  5. BIN
      app/src/main/assets/bg/山水墨影.jpg
  6. BIN
      app/src/main/assets/bg/山水画.jpg
  7. BIN
      app/src/main/assets/bg/护眼漫绿.jpg
  8. BIN
      app/src/main/assets/bg/新羊皮纸.jpg
  9. BIN
      app/src/main/assets/bg/明媚倾城.jpg
  10. BIN
      app/src/main/assets/bg/浅黄飘带.jpg
  11. BIN
      app/src/main/assets/bg/深宫魅影.jpg
  12. BIN
      app/src/main/assets/bg/清新.jpg
  13. BIN
      app/src/main/assets/bg/清新时光.jpg
  14. BIN
      app/src/main/assets/bg/羊皮纸1.jpg
  15. 0
      app/src/main/assets/bg/羊皮纸2.jpg
  16. BIN
      app/src/main/assets/bg/羊皮纸3.jpg
  17. BIN
      app/src/main/assets/bg/羊皮纸4.jpg
  18. BIN
      app/src/main/assets/bg/边彩画布.jpg
  19. BIN
      app/src/main/assets/bg/雾花.jpg
  20. 6
      app/src/main/assets/readConfig.json
  21. 26
      app/src/main/java/io/legado/app/ui/readbook/config/BgTextConfigDialog.kt

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

@ -1,6 +1,6 @@
[
{
"bgStr": "bg1.jpg",
"bgStr": "羊皮纸2.jpg",
"bgType": 1,
"darkStatusIcon": true,
"textColor": "#5E432E",
@ -14,8 +14,8 @@
"paddingBottom": 0
},
{
"bgStr": "#C6BAA1",
"bgType": 0,
"bgStr": "羊皮纸2.jpg",
"bgType": 1,
"darkStatusIcon": true,
"textColor": "#5E432E",
"textSize": 22,

@ -16,9 +16,8 @@ import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.jaredrummler.android.colorpicker.ColorPickerDialog
import io.legado.app.R
import io.legado.app.base.adapter.CommonRecyclerAdapter
import io.legado.app.base.adapter.ItemViewHolder
import io.legado.app.base.adapter.SimpleRecyclerAdapter
import io.legado.app.help.ImageLoader
import io.legado.app.help.ReadBookConfig
import io.legado.app.help.permission.Permissions
import io.legado.app.help.permission.PermissionsCompat
@ -132,17 +131,22 @@ class BgTextConfigDialog : DialogFragment() {
}
class BgAdapter(context: Context) :
SimpleRecyclerAdapter<String>(context, R.layout.item_bg_image) {
override fun convert(holder: ItemViewHolder, item: String, payloads: MutableList<Any>) {
with(holder.itemView) {
ImageLoader.load(context, context.assets.open("bg/$item").readBytes())
.centerCrop()
.setAsBitmap(iv_bg)
tv_name.text = item.substring(0, item.lastIndexOf("."))
}
CommonRecyclerAdapter<String>(context) {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemViewHolder {
return super.onCreateViewHolder(parent, viewType)
}
// override fun convert(holder: ItemViewHolder, item: String, payloads: MutableList<Any>) {
// with(holder.itemView) {
// ImageLoader.load(context, context.assets.open("bg/$item").readBytes())
// .centerCrop()
// .setAsBitmap(iv_bg)
// tv_name.text = item.substring(0, item.lastIndexOf("."))
// }
// }
}
}
Loading…
Cancel
Save