2019-04-28 22:43:54 +02:00
|
|
|
package org.schabi.newpipe.local.subscription.item
|
|
|
|
|
2020-11-27 15:48:38 +01:00
|
|
|
import android.view.View
|
|
|
|
import com.xwray.groupie.viewbinding.BindableItem
|
2019-04-28 22:43:54 +02:00
|
|
|
import org.schabi.newpipe.R
|
2020-11-27 15:48:38 +01:00
|
|
|
import org.schabi.newpipe.databinding.ListEmptyViewBinding
|
2019-04-28 22:43:54 +02:00
|
|
|
|
2020-11-27 15:48:38 +01:00
|
|
|
class EmptyPlaceholderItem : BindableItem<ListEmptyViewBinding>() {
|
2019-04-28 22:43:54 +02:00
|
|
|
override fun getLayout(): Int = R.layout.list_empty_view
|
2020-11-27 15:48:38 +01:00
|
|
|
override fun bind(viewBinding: ListEmptyViewBinding, position: Int) {}
|
2020-04-05 21:25:44 +02:00
|
|
|
override fun getSpanSize(spanCount: Int, position: Int): Int = spanCount
|
2020-11-27 15:48:38 +01:00
|
|
|
override fun initializeViewBinding(view: View) = ListEmptyViewBinding.bind(view)
|
2020-05-01 20:13:21 +02:00
|
|
|
}
|