Slide 30
Slide 30 text
RecyclerView
1. class Item(parent: Matcher) : KRecyclerItem(parent) {
2. val title: KTextView = KTextView(parent) { withId(R.id.title) }
3. val subtitle: KTextView = KTextView(parent) { withId(R.id.subtitle) }
4. }
1. val recycler: KRecyclerView = KRecyclerView({
2. withId(R.id.recycler_view)
3. }, itemTypeBuilder = {
4. itemType(::Item)
5. })
1. onScreen {
2. recycler {
3. firstChild {
4. isVisible()
5. title { hasText("Title 1") }
6. }
7. }
8. }