RecycleView Android Example 04 Create model class for the adapter
ฝัง
- เผยแพร่เมื่อ 30 ต.ค. 2024
- Create a class model with three properties that will be used in the recyclerview list. The adapter will link the president class with the layout in the recyclerview.
Android App development course playlist
• Android App Developmen...
Brilliant tutorial - Just applied this logic but source data from an existing SQLite database - I was worried that calling a new class instance with the same name while iterating through the cursor would not work but it does see them as separate objects and works. :-)
Very good tutorial. It helps me a lot. I was stuck in how to create a simple list with custom layout.
I'm having issues at 4min.57s, for some reason when using the references Id, name,date Of Election, these are not showing up as suggestions when filling out the MainActivity fillPresidentList, any suggestions please?
add constructor for the class (inside a class press ALT+INSERT and then there shows up list in the IDE and choose there constructor and link all the values if you still don't get it google contructors in java )
Cristal clear thanks!😀