Skip to content

Instantly share code, notes, and snippets.

View AhmedNMahran's full-sized avatar
🚀
Read Quran, and Develop 👍

Ahmed Nabil AhmedNMahran

🚀
Read Quran, and Develop 👍
View GitHub Profile
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
class SampleListActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setContentView(R.layout.list_activity)
val customAdapter = CustomAdapter(
arrayOf("item 1", "item2",...)
)
class SampleListActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setContent {
val items = arrayOf("item 1", "item 2",...)
LazyColumn {
// Add 10 items