pull/2514/head
kunfei 2 years ago
parent ba16beb2ce
commit 1403bd9002
  1. 31
      app/src/main/java/io/legado/app/ui/book/search/SearchScopeAdapter.kt

@ -1,31 +0,0 @@
package io.legado.app.ui.book.search
import android.content.Context
import android.view.ViewGroup
import io.legado.app.base.adapter.ItemViewHolder
import io.legado.app.base.adapter.RecyclerAdapter
import io.legado.app.databinding.ItemFilletTextBinding
class SearchScopeAdapter(context: Context) :
RecyclerAdapter<String, ItemFilletTextBinding>(context) {
override fun getViewBinding(parent: ViewGroup): ItemFilletTextBinding {
return ItemFilletTextBinding.inflate(inflater, parent, false)
}
override fun convert(
holder: ItemViewHolder,
binding: ItemFilletTextBinding,
item: String,
payloads: MutableList<Any>
) {
binding.run {
textView.text = item
}
}
override fun registerListener(holder: ItemViewHolder, binding: ItemFilletTextBinding) {
}
}
Loading…
Cancel
Save