private val header = KTextView { withText(R.string.text) }
private val recyclerView = KRecyclerView({ withId(R.id.recyclerView) }, itemTypeBuilder = {})
fun scrollToTextView() {
// I want to do something like this
recyclerView.scrollTo(header.getViewMatchers())
// Potentially to have an extension func to do this
recyclerView.scrollTo(header)
// As it currently stands, it seems like I have to redefine my matchers.
recyclerView.scrollTo { withText(R.string.text) }
}
In short I would like access to the matchers all KBaseView was initialized with.
Relevant Code:
In short I would like access to the matchers all KBaseView was initialized with.