Android Tutorial Part 12 of 100: RecyclerView with ConstraintLayout

preview_player
Показать описание
Learn how to use ConstraintLayout and the Layout Editor in Android Studio as we create a RecyclerView.

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

Fuck yes someone who isnt lazy and actually codes through with a proper mic and explains shit.
Keep it up learned a lot from you today more so than my lynda subscription where the instructor just kept on pasting code from a gist. Kudos eat this sub.

hurasane
Автор

Thanks. This simplified tutoring helped me handle recyclerview in constraint layout since I don't use relative layout. Try add explanation of each step of code with more details because I add comments to my codes.

kelechinwuba-onyejeana
Автор

Wow, that's a ton of info packed in there. For the most part I think I followed decently well, I am wondering how you did the constructor thing at 9:13

Sane
Автор

Are you still answering questions on this video? I found you on Linked In, but it doesn't look like I can "connect" with you because you are not already in my network.

PlatinumDragonProductions
Автор

Hello there, learning Android this summer and your video raised me a question. Is there a way we can make a model layout that will be used for every element in the RecyclerView?

vaggelismanousakis
Автор

Great videos you have here, learned a lot! I was wondering one thing though. Why do you place a "m" right in front of every variable name in the Java code? Is that so you don't end up mixing the Java variables with the XML variables? For example the mRecyclerView in Java and the id recycler_view in XML.

SyntaxTC
Автор

You code it simple. Its good. But we expect more explanations on how it works...

yuv
Автор

Are you sure that is good idea to use constraint layout with lists? Is there any problem with nested with and performence?

witoldsienski
Автор

I'd suggest that you remove the marginRight and marginLeft attributes since they are equal to "0dp". It's kinda bad practice as there's no point to keep an attribute with a 0 value. It literally changes nothing in the code and so ends up being kinda redundant. MarginRight = "0dp" is the same as having no marginRight attribute there.

alfred
Автор

I'm still learning Java and Android and have few questions:
1) Can you please tell me if creating inner-class here is a necessity or a way to program efficiently? I mean, can we create ViewHolder class as a separate class?
2) Do you think we can have complex layout for each item and still be good with perf. while using constraintLayout inside constraint layout? Because I read constraint encourages flat hierarchy but in case of recycler views, this is creating way too many nestings
3) Can we use any other adapter class with RecyclerView or is it strict rule to use RecyclerView.Adapter<object>
4) In MainActivity.java you had set mLayoutManager = LinearLayoutManager(this) but you are using ConstraintLayout and not LinearLayout. This seems confusing, can you please elaborate on this part?

Thank you so much!

ViditKothari
Автор

are you really sure this video was made keeping in mind that beginers would understand it...???

shrinidhipuranik
visit shbcf.ru