Kotlin: RecyclerView itemClickListener in Kotlin

Question or issue of Kotlin Programming: I’m writing my first app in Kotlin after 3 years of experience with Android. Just confused as to how to utilize itemClickListener with a RecyclerView in Kotlin. I have tried the trait (edit: now interface) approach, very Java-like public class MainActivity : ActionBarActivity() { protected override fun onCreate(savedInstanceState: Bundle?) […]

Continue Reading

Kotlin: Unit testing Room and LiveData

Question or issue of Kotlin Programming: I’m currently developing an app using the newly Android Architecture Components. Specifically, I’m implementing a Room Database that returns a LiveData object on one of its queries. Insertion and querying work as expected, however I have an issue testing the query method using a unit test.

Continue Reading