Horizontal RecyclerView



Learning android development for complete beginners (FREE COURSE):

In this video I show you how to use a Horizontal RecyclerView to display list items with an image and text.

You’ll learn to build a recyclerview adapter class from scratch and display images and text. To retrieve the images from the internet we use the “Glide” library.

This is a perfect example if you’re a beginner and need a step-by-step example on how to use a horizontal recyclerview in your android project.

➤Source Code:

➤Try Pluralsight for 10 days free:

➤My Pluralsight Courses:

➤Check out our website:


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

  • Sir how can we save the images in gallery???

    Himanshu Madaan July 1, 2020 5:46 am Reply
  • cool tut!!!

    Dan Cacovean July 1, 2020 5:46 am Reply
  • Awesome man

    Ishwariya Lakshmi July 1, 2020 5:46 am Reply
  • hey man, thank you for shareing with us, can I itereate through items with json?

    Vader July 1, 2020 5:46 am Reply
  • Excellent! 🙂

    Dan TheMan July 1, 2020 5:46 am Reply
  • I'm using Xamarin.Android but this tutorials are still helpful.

    Edwin Capidos July 1, 2020 5:46 am Reply
  • thank you, easy to follow and clear explanation

    alkawero July 1, 2020 5:46 am Reply
  • thanks man. great tutorial

    naked flames July 1, 2020 5:46 am Reply
  • I need to scroll to position of item clicked, auto scroll, I mean if i click 5th element so it auto scroll to fifth element and make it to start of list, can I do that using adapter observer class? I did try item ranged but it does not work like I wanted to.

    mansoor nisar July 1, 2020 5:46 am Reply
  • my app keeps crashing damn

    Justin Dates July 1, 2020 5:46 am Reply
  • what changes should i do if i want to use images from the drawable folder instead of getting them from a link, thank you in advance

    winston pais July 1, 2020 5:46 am Reply
  • And the animation?

    luke cross July 1, 2020 5:46 am Reply
  • Sir
    Can u tell me how I able to link multiple app within one app in flutter

    TAPAS JAISWAL July 1, 2020 5:46 am Reply
  • Awesome man… You are great. I was searching for this, As a beginner, I was not able to understand about RecyclerView. But your tutorials did. For Horizontal Recylcerview, I also recommend https://androidride.com/horizontal-recyclerview-android-example/ for beginners.

    iam c49 July 1, 2020 5:46 am Reply
  • Thanks for the tutorial!
    Can we do the same but retrieve images from firebase?

    George Matsos July 1, 2020 5:46 am Reply
  • I got an issue: horizontal recycler view is not actually "wrap_content" with dynamically height of card view base on its content changed. More details, height of horizontal recycler view cuts off height of card view unfortunately. Maybe recycler view is smartly choosing better view holder to present data from its adapter.

    Khanh Huynh July 1, 2020 5:46 am Reply
  • nice work, i wanna ask about this video, how do display json in the recyclerview brother? . im newbie 🙂

    yuda fajar July 1, 2020 5:46 am Reply
  • Thank you

    Yahya-Imam Munir July 1, 2020 5:46 am Reply
  • Thank u

    Karuna Singh July 1, 2020 5:46 am Reply
  • Thanks Man ,,,

    Pradeep Kumar July 1, 2020 5:46 am Reply
  • thank you so much <3

    Lộc Đỗ July 1, 2020 5:46 am Reply
  • what a beautiful tutorial, god bless u mate!

    Addrian Saopan July 1, 2020 5:46 am Reply
  • Hi, Mitch! I learn from you very much and you helped to take my skills on the next level. Here is a suggestion for you, I personally like frecso (image loading library), you should give a chance to fresco. It also offered customization of look and feel of the image.

    Muhammad Salman July 1, 2020 5:46 am Reply
  • my pages are not scrolling properly. i need to hold for 2..4 second at the corner of mobile screen and need to scroll. sometimes it scrolls and the page stucks in between.please help on same

    ajinkya kadam July 1, 2020 5:46 am Reply
  • muito obrigado !!!!!!!

    Matheus Comaru July 1, 2020 5:46 am Reply
  • great tutorial thanks for that but when I run it, shows no error and show nothing. Please help

    Vikram Singh July 1, 2020 5:46 am Reply
  • Ty Mitch , and wanna subscribe for your blog
    Please Email me, want to discuss more on that

    Manjunath R July 1, 2020 5:46 am Reply
  • I want to drag and drop these images to plain area. So what should I do for that?

    Abhay Darji July 1, 2020 5:46 am Reply
  • In default I want to set item 2 is selected? how can we do that?

    Reagan R July 1, 2020 5:46 am Reply
  • how can I replace these images with my drawable images?

    Meggan Frutuoso July 1, 2020 5:46 am Reply
  • Sound is too low

    Rana Mateen July 1, 2020 5:46 am Reply
  • thanks

    Mohamed Elsayed July 1, 2020 5:46 am Reply
  • Query query = imageList.orderByChild("menuId").equalTo(categoryId);

    FirebaseRecyclerOptions options = new FirebaseRecyclerOptions.Builder<Gallery>()

    .setQuery(query, Gallery.class).build();

    query.addValueEventListener(new ValueEventListener() {

    @Override

    public void onDataChange(@NonNull DataSnapshot dataSnapshot) {

    for(DataSnapshot postSnapshot : dataSnapshot.getChildren()) {

    String galleryImage = postSnapshot.child("galleryImage").getValue(String.class);

    Gallery galleryList = new Gallery();

    galleryList.setGalleryImage(galleryImage);

    mvalues.add(galleryList);

    /* Gallery gallery = dataSnapshot.getValue(Gallery.class);

    mvalues.add(gallery);*/

    Log.e("Hello", String.valueOf(mvalues.size()));

    }

    }

    @Override

    public void onCancelled(@NonNull DatabaseError databaseError) {

    }

    });

    Array list size show six. image is only 3

    Let's Learn Computer Programs July 1, 2020 5:46 am Reply
  • Appreciated.

    Nasir Mahmood Jaura July 1, 2020 5:46 am Reply
  • Helpful, thank you!!

    Simina-Maria Michile July 1, 2020 5:46 am Reply
  • I've been looking for a tutorial for a slider like this for html/css, but for some reason it's quite hard to find, as everyone seems to be doing full screen sliders.

    Kristaps Vecvagars July 1, 2020 5:46 am Reply

Leave a Reply

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