Created
March 28, 2021 09:35
-
-
Save AhmedNMahran/1eab504dfc99b7c50b397e3b49ec916a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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