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?) {} | |
} | |
}, |
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
class HelloJubakoActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.activity_jubako_recycler) | |
recyclerView.withJubako(this).load { | |
for (i in 0..100) { | |
addView { textView("Hello Jubako!") } | |
addView { textView("こんにちはジュバコ") } | |
} |
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
SelectionQueryBuilder q = new SelectionQueryBuilder() | |
.expr("is_awesome", EQ, true) | |
.expr("money", GT, 50.0f) | |
.expr("speed", LT, 21.1f) | |
.or() | |
.expr("door_number", EQ, 123) | |
.or().expr( | |
new SelectionQueryBuilder() | |
.expr("a", GT, 0) | |
.expr("a", LT, 100) |
NewerOlder