Skip to content

Instantly share code, notes, and snippets.

@AhmedNMahran
Created March 28, 2021 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedNMahran/1eab504dfc99b7c50b397e3b49ec916a to your computer and use it in GitHub Desktop.
Save AhmedNMahran/1eab504dfc99b7c50b397e3b49ec916a to your computer and use it in GitHub Desktop.
class SampleListActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setContent {
val items = arrayOf("item 1", "item 2",...)
LazyColumn {
// Add 10 items
items(items) { item ->
Text(text = item)
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment