Recyclerview + Cardview with GridLayout | Android studio tutorial

49
55



hello guys,
i made this video 6 days ago and i wasn’t able to upload it for some stupid reasons
anyway i hope you enjoy it 😀 and Thanks for watching

video walkthrough :

00:00 : Preview
01:20 : adding Recyclerview and cardview library
01:50 : adding recyclerview compenent to the main activity
02:50 : designing book item card
06:35 : Creating Book Model java Class
08:36 : Creating RecyclerView Adapter
16:08 : Creating list of books
19:36 : Instantiate the recyclerview
20:11 : instantiate Adapter
21:05 : Set layoutManager type to Gridlayout
25:53 : Creating Activity for book details
25:29 : Adding click listener event recyclerview+ cardview
32:26 : Passing data from home Activity to book detail activity
37:22 : Getting data from home activity

Project source code :
————————————————————————-
Follow me On :
Google Plus :
Instagram :
Github :
My blog :
————————————————————————–
Music Credits:
Calderon (i flipped juan carlos calderon) by Ryan Little
soundcloud :
youtube channel :

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

49 COMMENTS

  1. I appreciate the video but the link in the video description source files don't look ANYTHING like the video source files. Is that the correct source files?

  2. About 1:34
    For a newer version of android studio, you should write:
    implementation 'com.android.support:cardview-v7:28.0.0'

    implementation 'com.android.support:recyclerview-v7:28.0.0'
    on build.gradle

    it should look like this:

    dependencies {

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

    implementation 'androidx.appcompat:appcompat:1.0.2'

    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    implementation 'com.android.support:cardview-v7:28.0.0' //Card View
    implementation 'com.android.support:recyclerview-v7:28.0.0' //Recycler View
    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'androidx.test:runner:1.1.1'

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

    }

    Pay Attention!
    This is true only to this date, 04.25.2019
    You might need to check here for a newer version: https://developer.android.com/reference/android/support/v7/widget/CardView
    (I'll try to find more stuff like this and share here)

  3. Hello sir when i create same as your given tutorial then an error accured in my virtual device : Application keeps stopping
    pls help then what i do

  4. Thank you very much for this video.
    I am at last semester of my master's degree and currently working as a intern in private company and i am working on commercial android app & this video helped me alot.
    Subscribed to your channel keep doing this amazing work. 👍
    Thanks again 👏👏

LEAVE A REPLY

Please enter your comment!
Please enter your name here