RecyclerView + CardView – Part 1 – LAYOUTS AND CUSTOM OBJECTS – Android Studio Tutorial



In this video we start building a RecyclerView, which contains CardViews with 1 ImageView and 2 TextViews each.

Watch the whole RecylerView playlist:

You can find the example code and dependencies here:

Want to use Kotlin instead? Watch the Kotlin version here:

____________________
❗ Subscribe to the channel:

⏯ Watch more tutorials:

⭐ Become a channel member for exclusive tutorials and other perks:

㊙ Help translating the videos:

💚 Support the content:

💬 Join the Discord chat:

🎧 Audiobooks and podcasts for programmers:

👶 How to get started with Android development:

📣 Follow Coding in Flow on social media:

Facebook:

Instagram:

Twitter:

Blog:

Nguồn: https://baggersoriginals.com/

Xem thêm bài viết khác: https://baggersoriginals.com/cong-nghe/

Article Categories:
Công Nghệ

Comments

  • ****
    I added a link to the code of this example into the description box!
    ****

    Coding in Flow July 2, 2020 4:28 am Reply
  • in the ExampleItem class why don't you using tool generate code of android studio

    Việt Tuấn Trần July 2, 2020 4:28 am Reply
  • for me the dependencies are in
    dependencies {

    implementation fileTree(dir: "libs", include: ["*.jar"])

    implementation 'androidx.appcompat:appcompat:1.1.0'

    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'androidx.test.ext:junit:1.1.1'

    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    } format please help me how to edit them

    Abhigna Amarraju July 2, 2020 4:28 am Reply
  • idk but your voice is just beautiful , its calming .__.

    Dixie M July 2, 2020 4:28 am Reply
  • Hello Sir, I am wondering for the answer of below Question.
    when does getItemCount() method get called in RecycleView adapter?

    and why it called multiple times in fragment?
    Please help me and if you are able toh make a video on this then please do that.

    sagar jain July 2, 2020 4:28 am Reply
  • osmmmmmmmmmmm

    Saroj Kumar Pradhan July 2, 2020 4:28 am Reply
  • bro i have learned most of the android components from you only ….thank u bro and keep making android videos… and one more thing create a new android playlist for 2020 android studio version…thanku so much bro.

    vikas singh July 2, 2020 4:28 am Reply
  • Hey
    When i try to implement the libraries then android studio always tells me to add the "//noinspection GradleCompatible" tag. is that right? and what is the meaning behind it?

    Klaus Kleber July 2, 2020 4:28 am Reply
  • Thanks 'Coding in Flow' for your nice video. Basically I was able to follow your instructions. However, I simply could not move the text item using the Layout editor. After draging and droping the elements on the layout they are automatically moved to the top left corner. Any idea what I am doing wrong?

    Vanessa Fimer July 2, 2020 4:28 am Reply
  • For everyone who just begins programming, watch this playlist twice and you will understand it better than anywhere else.
    I like how you teach to keep code clean from very first trials. Thanks a lot!

    Артём Стрельников July 2, 2020 4:28 am Reply
  • What is the use of maven URL?

    ASHJET GAMERS July 2, 2020 4:28 am Reply
  • U have made two different XML file one for recycler view and other for card view …then why card view will be shown inside recycler view.help as fast as u can

    ASHJET GAMERS July 2, 2020 4:28 am Reply
  • When I am passing example item in array list it's showing cannot resolve symbol 'example item'

    ASHJET GAMERS July 2, 2020 4:28 am Reply
  • Can you tell us how to store all list of items in strings.xml(string array) instead of putting them all in java? How do I get string array in string.xml to recyclerview?

    Nehemiah Narzary July 2, 2020 4:28 am Reply
  • maven { url 'https://maven.google.com' } what does this do ?

    Ankur Soni July 2, 2020 4:28 am Reply
  • Omg the scrolling is so laggy and slow i need help please 😭😭😭😭🙏

    Salah bahdi July 2, 2020 4:28 am Reply
  • how do i use url image instead of local image?

    Mahfuzur Rahman July 2, 2020 4:28 am Reply
  • Sir , how to add admob banner ads in firebase recyclerview
    I created wallpaper app using firebase recyclerview ,I want add banner ads after 6 items
    Please help me

    Abhishek July 2, 2020 4:28 am Reply
  • useful video, thanks

    Vijay Jangid July 2, 2020 4:28 am Reply
  • Nice Video, But very old, here you can find a detailed example of the latest RecyclerView with AndroidX and its Video. https://handyopinion.com/how-to-show-vertical-list-in-kotlin-using-recyclerview-example

    Asad Ali July 2, 2020 4:28 am Reply
  • Which software are record for screen recorder … please tell me

    Mission Government Job July 2, 2020 4:28 am Reply
  • Wow..super…..

    madhu cp July 2, 2020 4:28 am Reply
  • I transferred the ExampleList.java to a package folder named 'recycler'', then when I try to do this ArrayList<ExampleList>, it said that "cannot resolve symbol" but when I remove it in the package folder it works. Do you have any idea on how I can resolve this? Thank you

    Eat some rice July 2, 2020 4:28 am Reply
  • I can't understand how you run the Application. You have not used any textView or imageView ID's, also you given ID to recyclerView where you have you used. Please upload Proper Codes.

    ROHIT SINGLA July 2, 2020 4:28 am Reply
  • anyone can do a tutorial on how to filter recycler view on a fragment instead?

    MrFyce July 2, 2020 4:28 am Reply
  • The only part I didn't like here was how zoomed in it is. I want to see which file you're working in and how surrounding code looks like.

    Liggliluff July 2, 2020 4:28 am Reply
  • Thank you very much, your videos help me so much!!!!!!!!!!!!!!!!!!!!!!!

    Nadia Orin July 2, 2020 4:28 am Reply
  • I was doing some exercises and felt like I should watch your recycler view tutorials once again to get the concepts clear. I fuckin' needed this. Thanks for your valuable videos. This is a life savior.

    nexgen.graphics July 2, 2020 4:28 am Reply
  • i luv u man

    Mohammed zaydan July 2, 2020 4:28 am Reply
  • Excelent explanation, thank you Conding in Flow.

    Salomon Denis July 2, 2020 4:28 am Reply
  • Thanks man really helpfull BUT PLEASE stop using zoom its very annoying

    Samer Alatawneh July 2, 2020 4:28 am Reply
  • Can anybody tell me how to improve my android coding skills.. ?? I'm beginner

    Manikanta Dasar July 2, 2020 4:28 am Reply
  • Can you please make a tutorial on Place Picker?

    Arjun Venugopal July 2, 2020 4:28 am Reply
  • When i insert new data to the recycler view how can i make something like an icon on the interface that opens the same text line ?? I mean to get to it faster than go to recycler view and reopen it

    Ali Eid July 2, 2020 4:28 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *