Recyclerview + Cardview with GridLayout | Android studio tutorial

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 273

  • @siddharthachatterjee9808
    @siddharthachatterjee9808 6 років тому +2

    I didn't know a thing about ANDROID design.Thanks to you I know more than any of the people in my class.You're a legend.

    • @AwsRh
      @AwsRh  6 років тому

      thank you so much just practice and you will be OK

  • @yiyatsen
    @yiyatsen 6 років тому

    I like your tutorial. Fast, clean and no annoying voice.

  • @samr1732
    @samr1732 7 років тому +15

    This channel is simply awesome. I love your videos man! Thank you so much for making these!!

    • @AwsRh
      @AwsRh  7 років тому +1

      thx Mango :*

    • @prateeksinghal630
      @prateeksinghal630 4 роки тому

      @@AwsRh Can you please tell me if the github repo is the android project imported directly from android studio or else if you have made the folders by yourself, cause I am making this app and tried to do code as you instructed but seems to be some error in it so I wanted to know if I can clone the repo and run it directly??

  • @Yourself731
    @Yourself731 4 роки тому

    I'm from Brazil, thank you about the video. Helped me a lot, same after 3 years.

  • @shubhamshinde4042
    @shubhamshinde4042 6 років тому

    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 👏👏

  • @barbaros_burak
    @barbaros_burak 6 років тому

    Thank you so much man. Really appreciate the video. Always had problems with implementing recycler view but this helped me alot.

  • @maksonic_official
    @maksonic_official 5 років тому +2

    i'm from Russia, thanks you for this tutorial! Amazing!

  • @Alihaider-rs8is
    @Alihaider-rs8is 5 років тому

    It was Stunning Method in which you Described

  • @ayansarkar2357
    @ayansarkar2357 4 роки тому

    I have no words just I can say thank you.

  • @phucthaifg
    @phucthaifg 6 років тому +3

    Thank you for the video! It's clear and easy to follow.

  • @DevelopersWork
    @DevelopersWork 4 роки тому

    Great video... Took me 3 days to find this video on the UA-cam... Better add title 'this is using java' cause when we search only thing I see is XML videos in the search result

  • @yasirvlogs5342
    @yasirvlogs5342 4 роки тому

    nice and easy to implement video thanks bro keep it up

  • @ahmed-xvl
    @ahmed-xvl 5 років тому

    Awesome man, I like what you did here! Thanks for sharing it with us,
    Just awesome!

  • @devArthur-cr9nl
    @devArthur-cr9nl 6 років тому +1

    Dude, nice work and thank you very much for the effort. Im just beggining a new project in this code will come in handy...

  • @maheshdhote9607
    @maheshdhote9607 6 років тому

    Thanks bro it helped me lot in my project.Keep it up u r doing great job.

  • @askaryben5683
    @askaryben5683 6 років тому +3

    Good Luck from Morocco and thank you very much 💙

    • @AwsRh
      @AwsRh  6 років тому +1

      thanks brother

    • @Simo-qt2jx
      @Simo-qt2jx 4 роки тому

      @@AwsRh me too from Morocco bro how to change description of everyone???

  • @oscarmartinez1099
    @oscarmartinez1099 7 років тому +1

    Muchas gracias por tus buenos tutoriales. Saludos desde Nicaragua.

    • @AwsRh
      @AwsRh  7 років тому

      thank you so much

  • @akshaychavan5511
    @akshaychavan5511 4 роки тому

    Thank you for such an impressive tutorial :)

  • @roei7111999
    @roei7111999 5 років тому +1

    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: developer.android.com/reference/android/support/v7/widget/CardView
    (I'll try to find more stuff like this and share here)

    • @roei7111999
      @roei7111999 5 років тому +1

      2:00 Also:
      Instead of writing android.support.widget.RecyclerView
      you should write:
      androidx.recyclerview.widget.RecyclerView
      Pay attention to androidX!!

  • @cansuyeksanaktas
    @cansuyeksanaktas 6 років тому +1

    Great tutorial! Thanks for sharing.

    • @AwsRh
      @AwsRh  6 років тому

      thanks :)

  • @ahmedmohamed1340
    @ahmedmohamed1340 5 років тому +1

    thanks man this is awesome.

  • @lucasverrier9699
    @lucasverrier9699 4 роки тому

    So good to follow the flow

  • @pashayad619
    @pashayad619 4 роки тому

    Thaaaaank yoooou so much 😘😘♥️ you cooool.

  • @santoshdeshmukh9814
    @santoshdeshmukh9814 5 років тому

    Really Great Tutorial...!!!Thanks Bro...

  • @ortizbryan1
    @ortizbryan1 6 років тому +1

    Genial, no encuentro más palabras para describirlo

  • @salomondenis9751
    @salomondenis9751 5 років тому

    I liked your method. Thank you for share.

  • @ahmedmohammed9462
    @ahmedmohammed9462 6 років тому +1

    if i want to distribute the space between the three elements in each row evenly how can i do that?
    i try to set android_width="0dp" and android:layout_weight="1" in cardview_item_book.xml but it doesn't work

  • @JulianDik
    @JulianDik 6 років тому

    Very nice!!!! Thats exactly what I needed :)

  • @arshiyasayyed9732
    @arshiyasayyed9732 7 років тому +1

    Thanks a lot sir very good video ... god bless u❤️

    • @AwsRh
      @AwsRh  7 років тому

      your welcome my brother

    • @arshiyasayyed9732
      @arshiyasayyed9732 7 років тому

      Plzz make a video on how to save share set wallpaper of a image

  • @Jairo3695
    @Jairo3695 6 років тому

    Love your content :D thanks for it m8 you help me alot

  • @willz17-DRX
    @willz17-DRX 4 роки тому

    Really good video, Hope you still going!

  • @ayushianderiya396
    @ayushianderiya396 2 роки тому

    Can you please tell me how can i be able to use just two consecutive cardview instead of three becoz the third one is just showing half cardview...

  • @sergiho96s37
    @sergiho96s37 3 роки тому

    great job,thank you!

  • @rosegoldtelefilms2359
    @rosegoldtelefilms2359 4 роки тому

    Mind Blowing
    Can you make a video on same topic but different functionality
    After making the home screen book layout then when i click on any book then open a new activity where all the chapters are listed in linear layout . when I click on any chapter then start download pdf file from server with progress bar in internal storage and open in new activty. Downloaded pdf file shouldnot show in other app. this should be only content of this app. After uninstalling this app all downloaded pdf are also deleted.

  • @bakytkhamraev6844
    @bakytkhamraev6844 4 роки тому

    thank you very much for the video

  • @manpang1235
    @manpang1235 4 роки тому

    Hi, do you know how to put this to a tabbed activity. For example, put this layout on tab2.

  • @ahsansyed4146
    @ahsansyed4146 6 років тому

    very good tutorial, kindly do this with firebase, how to upload and retrieve data from firebase in GridView ASAP :)

  • @h3w45
    @h3w45 5 років тому

    awesome design, thank you.

  • @lyfe8757
    @lyfe8757 7 років тому +3

    You're remarkable, and your work is amazing!!! Wow thanks so much for this. How complex is it to add a drawer(side panel) to this approach? Any changes to be applied?

  • @mirsaheb4131
    @mirsaheb4131 4 роки тому

    Awesome, Please told that, how to add html or pdf file for full story?

  • @ramchandrathapa3532
    @ramchandrathapa3532 6 років тому

    wow awesome dude... thank you so much

  • @alexsamaniego9164
    @alexsamaniego9164 6 років тому +1

    Great Tutorial - how would you make this particular recycler view horizontal?

  • @CayqueDuarte
    @CayqueDuarte 6 років тому

    Is it possible to insert new cards from a button? What would I add in the code to add, leaving the permanent cards in the application? Thank you

  • @ramy.elbouhy
    @ramy.elbouhy 6 років тому

    Great!!! Dear , thanks so much , keep it up

  • @erikansori
    @erikansori 4 роки тому

    i am from indonesia, this is very great content, make me can understand how it works. THANKS

  • @aboalwajeeh9471
    @aboalwajeeh9471 7 років тому

    Thank you man ... you are the best
    شكرا

    • @AwsRh
      @AwsRh  7 років тому

      thanks so much for your support

  • @tusharrupani4460
    @tusharrupani4460 4 роки тому

    Awesome Loved it!!!

  • @player-kw2tv
    @player-kw2tv 6 років тому

    Thanks. in the meantime we can open up other activities with two different intentions?

  • @clickupdates7416
    @clickupdates7416 6 років тому

    Above code works nicely.I have a problem.I want to separate activities for separate books.It means when click one book it should open with it's pdf book viewer....How to do that...? please explain...or give me the code...Thank you

  • @justanintrovert
    @justanintrovert 3 роки тому

    Hey, i did everything as per the video but the intent in adapter is not working

  • @iLLeo20899
    @iLLeo20899 5 років тому

    can you explain why i get this error with your code that setOnclick of cardview on a null Object ?

  • @Surrealslay3rr
    @Surrealslay3rr 4 роки тому

    Hey I wanted this to work with bottom navigation what should i do??

  • @JuanFcoRomero
    @JuanFcoRomero 5 років тому

    Super tutorial! Thanks!!

  • @manhhungnguyen7692
    @manhhungnguyen7692 5 років тому

    Nice video bro. Thanks for sharing :)

  • @jk-zl4jl
    @jk-zl4jl 6 років тому

    Thanks bro.. It helped a lot..

  • @ahmedyacinetalbi968
    @ahmedyacinetalbi968 5 років тому

    amazing tutorial thnk u so much

  • @HTSM.24
    @HTSM.24 6 років тому

    YOU Are Great Creator #AWS_RH Keep it up..

  • @sumitmondal7717
    @sumitmondal7717 6 років тому

    Thanks for making this video

  • @eugeneyee8296
    @eugeneyee8296 5 років тому

    why the image and the name in the cardview all will stick to together when displaying?

  • @aniketnayi3921
    @aniketnayi3921 4 роки тому

    Thank you so much ❤️❤️

  • @YasserSedrati
    @YasserSedrati 6 років тому +5

    but the *Gridlayout isn't in the middle of the screen view* .. How can I fix it ? and thanks for your great tuto.

    • @sublajz8432
      @sublajz8432 5 років тому

      I have the same problem. Have you figured out how to solve it?

  • @fishworld1998
    @fishworld1998 4 роки тому

    how do you make 3 parts like the picture on your video right and left so that the book cover has 3 parts how to add to fragments?

  • @howto1944
    @howto1944 5 років тому +1

    Thank you for the awesome video, but sir, how can I add a description in the book list Activity.

  • @andriyshatynskyy5214
    @andriyshatynskyy5214 4 роки тому

    Hello, it's working... but I need to use this code in fragment? how I can use it? Thank

  • @harshvikadia78
    @harshvikadia78 2 роки тому

    Add Button on pages. when click on button that book will be open how to make ??? please make a video on that too...

  • @Sport-word
    @Sport-word 7 років тому

    hello the best teacheer
    please kindly make toturial how to pick image and open camera in android studio

  • @kajcsa
    @kajcsa 6 років тому

    May I ask you why do you capitalize the variables?

  • @folkeboyz
    @folkeboyz 4 роки тому

    I want to open activity_book to popup !! What should I do?

  • @bestthrickssoharb9314
    @bestthrickssoharb9314 6 років тому

    you are the best man

  • @syednayyar
    @syednayyar 4 роки тому

    amazing ... i tried this on android 10 worked great but when i tried on android 5.1 ( Xperia z ultra ) device it was laggy and very very and un responsive any lead ?

  • @ChakmeStatus
    @ChakmeStatus 5 років тому

    How to get same result from online json data

  • @money_shower_lion
    @money_shower_lion 6 років тому

    I always watch your video well. By the way do you know how to use CardView to move pages? I've been struggling with this problem for a week. Please help me. TT

  • @arunsharma07
    @arunsharma07 5 років тому

    how to add webview in place of description....please reply

  • @derekmcgilvray91
    @derekmcgilvray91 6 років тому

    nice simple design, thank you - how would I be able to zoom in on the book?

  • @solange0ska
    @solange0ska 5 років тому +1

    HELLO! HOW CAN EDIT THE "DESCRIPTION" TO PUT THE INFORMATION OF EACH ELEMENT, PLEASE.

  • @dasisridarshan106
    @dasisridarshan106 6 років тому

    Bro, How to save scroll position of RecyclerView state between activities and restore it

  • @EddyCaffrey
    @EddyCaffrey 7 років тому +1

    Amazing. Thank you 👍

    • @AwsRh
      @AwsRh  7 років тому

      thx Edi

  • @toppersstudytips6237
    @toppersstudytips6237 6 років тому

    Hello sir full mind blowing... But how can i implement Intent to share Data of Thumbnail and Title on btn click plz i tried it but failed....

  • @omarfer9478
    @omarfer9478 6 років тому

    Amazing broo.. regards from Perú. Pls ..can you teach us how to do this but with firebase connection? (getting images from firebase as example)

  • @bonnywaithaka501
    @bonnywaithaka501 6 років тому

    using the same tutorial, how can it retrieve data from firebase i.e the image, book title, category and the description when user inserts the data

  • @howto1944
    @howto1944 5 років тому

    Thank you for the video!
    I have a question. How can I put string data in the description?

  • @nievadov7027
    @nievadov7027 6 років тому

    Nice One can we get data from json file??

  • @MilanShresthaa
    @MilanShresthaa 4 роки тому

    it showed Unsupported Modules Detected: Compilation is not supported for following modules: Recyclerview2, app. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.

  • @JuanHernandez-yc9bm
    @JuanHernandez-yc9bm 7 років тому +1

    Excelente como siempre amigo :D

    • @AwsRh
      @AwsRh  7 років тому +1

      thanks for you support Juan Hernandez

  • @amanswarnkar7625
    @amanswarnkar7625 6 років тому +1

    I didn't get margin between two consecutive cardview. What image size you're using in drawable folder?

    • @AwsRh
      @AwsRh  6 років тому +1

      try to reduce you cardview width

    • @AbdulSamad-wn3jx
      @AbdulSamad-wn3jx 6 років тому

      card width is match parent how can i reduce it?

    • @야씬
      @야씬 6 років тому

      I had the same problem and this worked, thanks!

    • @AbdulSamad-wn3jx
      @AbdulSamad-wn3jx 6 років тому

      But it is not responsive for other devicea

    • @야씬
      @야씬 6 років тому

      Yea I realized this afterwards, I'm trying to look for a solution.

  • @noshadahmed221
    @noshadahmed221 6 років тому

    how to load webview on click in another activity

  • @dyaa_unison5580
    @dyaa_unison5580 6 років тому

    how could i implement this to firebase? and add content to firebase? would this work?

  • @hichem1027
    @hichem1027 5 років тому

    Genius !
    thnx a lot Bro

  • @mahdihussaini2387
    @mahdihussaini2387 6 років тому +1

    it is awesome but how can i have more description than what in the main_activity is ??!

    • @AwsRh
      @AwsRh  6 років тому

      if i understand well you want more books on the main activity
      if so you need just to add more books to your list of books

  • @liconnor3782
    @liconnor3782 4 роки тому

    nice video, how to make it in fragment man?

  • @AminA-2051
    @AminA-2051 6 років тому

    Nice Tutorial. I have one question though: How can you center the adapter so that the items in the gridLayoutManager/recyclerView are all positioned correctly?

  • @ShubhamSwarnkaroffcial
    @ShubhamSwarnkaroffcial 6 років тому

    how do i pass an integer value as like other values passed into main activity?

  • @bhavanisinggaherwar5474
    @bhavanisinggaherwar5474 4 роки тому

    How to add book text on next activity

  • @games4you732
    @games4you732 6 років тому

    Can you guid main how can add swipe when click and open image

  • @sallehheyat8980
    @sallehheyat8980 5 років тому

    can you make video setting gridlayout with recycler view in fragment ?

  • @koeniedoenie
    @koeniedoenie 5 років тому

    Hey @Aws Rh,
    how can I remove the borders of all the items in the recyclerview?
    Thank you.

  • @vuongqtvn
    @vuongqtvn 4 роки тому

    nice tutorial

  • @SanSola
    @SanSola 6 років тому

    Help!
    The application is running really slow and lagging, What could be the issue? has anyone encountered it ?

    • @AwsRh
      @AwsRh  6 років тому

      --how did you get your recycler view data (i used drawable resources image for testing purpose) in real world app you would get your data from an API
      -- use Glide or Picasso to load the images into your views
      -- if your item size is fixed set yourrecyclerview.sethasfixedsize(true)

  • @gauravshukla9405
    @gauravshukla9405 5 років тому +1

    how to implement in app downloader in webview app ,make a video please

  • @eminkara37
    @eminkara37 4 роки тому

    Thank you.