RECYCLERVIEW - Android Fundamentals

preview_player
Показать описание
In this video you will learn about a very important view in Android which is the RecyclerView. It is used to implement all kinds of list in a very efficient way.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:

Рекомендации по теме
Комментарии
Автор

OK I didn't understand your explanation of what RecyclerView does but after looking it up now I understand. When a view (the container for one of the rows) goes off screen, instead of just being off screen and taking up resources for no reason, or just being deleted and replaced with a new one, Android keeps it but replaces all the content (the actual image and words you see) with new content. This way the system doesn't need to store all the hundreds of views (which would eat up all the memory), and it doesn't have to constantly delete view objects only to replace them with new ones (which would use up CPU power). Instead it only creates the minimum number of view objects (however many fit on the screen) and just replaces the content in them with whatever needs to be displayed.

ohmegatech
Автор

I was stuck on a problem for a whole day until I saw this video! Thank you!

abrammedrano
Автор

the best explanation ever
I'm learning android programming in Kotlin and for 1 week I've been trying to understand RV setting.
Thanks you lot, Phillip!

ARIZONAMUSIC
Автор

Thank you Philipp, for the great tutorials! I follow the ANDROID FUNDAMENTALS FOR BEGINNERS and the tutorials are perfect so far.

vasiliv
Автор

A really easy improvement for anyone reading is to add etTodo.text.clear() to remove the text for the item that was just added.

btnAddTodo.setOnClickListener {
val title = etTodo.text.toString()
val todo = Todo(title, false)
todoList.add(todo)
//update recycler view
- 1)
// Clear text
etTodo.text.clear()
}

Nice tutorial, thanks!

mrodriguezalas
Автор

Okay so I see a lot of people have problem with this tutorial.
Problem 17:36

So in your build.gradle file add this code inside of android {} and make sure you press sync.
BUILD.GRADLE

buildFeatures {
viewBinding true
}

And this is how your code should look like.
CODE:

class ToDoAdapter(var todos: List<ToDo>): {

inner class ToDoViewHolder(val binding: ItemTodoBinding) :

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ToDoViewHolder {
val layoutInflater =
val binding = ItemTodoBinding.inflate(layoutInflater, parent, false)
return ToDoViewHolder(binding)
}


override fun onBindViewHolder(holder: ToDoViewHolder, position: Int) {
holder.binding.apply {
// tvTitle this now works
}
}

override fun getItemCount(): Int {
return todos.size
}

}

This is not bad tutorial but for beginners it's hard. Also Philipp should update with pined comment or something about this problem. And how to solve it.
Enjoy

DomoxD
Автор

I havent seen the video yet but.... CAN WE TALK ABOUT HOW COOL THAT INTRO TRANSITION WAS???!!! xD

terrencejackson
Автор

I think this video is very clear. I'd just add the mention that as an option to LinearLayoutManager you can have LinearLayout.Horizontal in case you want to have it scrollable horizontally.

tiagocastro
Автор

Great tutorial Phillip! The lesson is valuable and your narration is easy to understand. Thank you

jacksonhall
Автор

Thank you. The way you explain things, it's really easy to follow for newbies like me - very good job!

simasbutavicius
Автор

Amazing, detailed and easy to understand, thank you so much

harshmore
Автор

Thanks for the great demo
On minute 18:50, I used an inner apply :
todos[position].apply {
txtTitle.text = title

chkDone.isChecked = isChecked
}

guy
Автор

Thank you very much for this video, it was really easy to follow and understand. Your explanations are clear and concise :)

xtd
Автор

Thank you Sir! Better than my lecturer's explanation

TefkrosAirliner
Автор

Wow, this is such an elegant tutorial! Thank you!

stephanvanellewee
Автор

I'm really thankful to you . This tutorial is very easy to understand and learn recycle view.

thecoder
Автор

My understanding is alot better now, but am sure i will get back to it once more. Thanks mate

natnaelsisay
Автор

Amazing Tutorial. Keep up the good work man!

shivamparimalbhaigohel
Автор

awesome video, simple exemple not to much in it, perfect to understand the basics of everything 5 star good job

Defense
Автор

Thank you so much this was really simplified amazingly

youssefkhaled