Last active
March 28, 2021 09:45
-
-
Save AhmedNMahran/706d94e7a7f5cbc7ecb12b3cfb22322e 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?) { | |
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