Created
January 20, 2020 15:21
-
-
Save fluxtah/7203569f4ced1b52ce77bdfc9eb4410a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recyclerView.withJubako(this).load(SimpleJubakoAssembler { | |
for (i in 0..100) { | |
add(object : ContentDescriptionProvider<Any> { | |
override fun createDescription(): ContentDescription<Any> { | |
return ContentDescription( | |
viewHolderFactory = viewHolderFactory { | |
object : JubakoViewHolder<Any>(textView("Hello Jubako!")) { | |
override fun bind(data: Any?) {} | |
} | |
}, | |
data = EmptyLiveData() | |
) | |
} | |
}) | |
add(object : ContentDescriptionProvider<Any> { | |
override fun createDescription(): ContentDescription<Any> { | |
return ContentDescription( | |
viewHolderFactory = viewHolderFactory { | |
object : JubakoViewHolder<Any>(textView("こんにちはジュバコ")) { | |
override fun bind(data: Any?) {} | |
} | |
}, | |
data = EmptyLiveData() | |
) | |
} | |
}) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment