Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class SampleListActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setContentView(R.layout.list_activity)
val customAdapter = CustomAdapter(
arrayOf("item 1", "item2",...)
)
val recyclerView: RecyclerView =
findViewById(R.id.recycler_view)
recyclerView.adapter = customAdapter
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment