Android App Development for Beginners – 48 – Custom ListView Adapter

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

45 responses to “Android App Development for Beginners – 48 – Custom ListView Adapter”

  1. Ensieh Mollazadeh Avatar

    You explain very nicely even better than my university professor.I wish you had a tutorial on Recycler view as well.

  2. Prasad Jadhav Avatar

    Great, but how to do this if you have 2 rows in a single list item, like something below "name"?

  3. SHIKHAR GUPTA Avatar

    hey guys need some help here

    java.lang.OutOfMemoryError: Failed to allocate a 207667212 byte allocation with 4110960 free bytes and 186MB until OOM

  4. Shubham Bhalekar Avatar

    thanks man, it helped me a lot…keep up your work…

  5. Zenryu'sCC ds Avatar

    So I bought atleast 50$ worth of tutorials and you were right here all along! FOR SHAME!!! Your amazing! I hope you have updated versions of your tutorials because out of everyone, you're the best.

  6. Akash Patil Avatar

    Awesome Video. Thank You ! What shall i do in following cases ?
    1) Add 1 more TextView, one below other . I did it in layout.xml but how to pass it to customAdapter ?
    2) How to change images dynamically ? something like downloading details from social websites like facebook, i want profile pic in left, name in right and just below name location of the person.

  7. Priyu Biswas Avatar

    My app keeps stopping what is the solution to this

  8. Freddy Acevedo Avatar

    Thank you mr. Bucky!

  9. Ricky Solorio Avatar

    You are freaking awesome/amazing Bucky! When will this app hit the play store?

  10. Mina Avatar

    Can somone help me. I want a different image for each item and Im useless. Thanks

  11. billy kong Avatar

    I have 14 list elements and I load the images via switch statement:

    switch(breakfastElement) {
    case "Bacon":
    imageView.setImageResource(R.drawable.bacon);
    break;
    case "Eggs":
    imageView.setImageResource(R.drawable.eggs);
    break;
    etc…

    this causes the app to be very slow and causes crashing. Is there a more efficient way to do this?

  12. עדי ששון Avatar

    great video man very helpful but u was wondering what if i had two ArrayLists instead f one how do i handle something like that?
    thanks in advance

  13. Stathis Stathis Avatar

    ΣΕ ΠΛΗΡΩΝΩ ΒΡΩΜΙΑΡΗΗΗ.

  14. Jernej Kalin Avatar

    You sir, just saved my ass 😀

  15. Med Said M'bareck Avatar

    amazing voice ever hhh,
    thanks man i really appreciate it

  16. Taha Iftekhar Avatar

    I hope they invent Brain knowledge transfer thing soon so I can copy Bucky's brain

  17. Bruno Luan Avatar

    This is the one of greatest tutorials that I ever seen on Youtube. Thank you very much!

  18. Dead Plant Avatar

    How could I add another textview into this adapter so a single item would have 2 textviews?

  19. masoudxxx2002 Avatar

    in my case click didn't work on custom adapter so added this line to each control in custom control inside xml
    android:focusable="false"

  20. frans ringo Avatar

    Yo man i found your tutorial is very amusing. Thanks to u i can fix my ListView on my last Project. Keep on it!

  21. Violet Lee Avatar

    Thx man! It's really helpful 🙂

  22. Azizjan Ayupov Avatar

    Because I'm beautiful :DDD So that's true)))) Thank you very much!!!

  23. Evgeni Kuzmov Avatar

    what is return? is "return" makes the app update each time ?

  24. Evgeni Kuzmov Avatar

    what is reference ? 6:19 . I don't see you calling a method. you just
    equalize it to customView. why isn't it buckyText.customView ?
    is customView a method or class? if a class, why don't we type "new"?

  25. Evgeni Kuzmov Avatar

    what is parent in this case? 5:19

  26. Gregory Zuravlev Avatar

    That was really cool! Easy to understand and follow you. Thumbs up.

  27. moby boy Avatar

    ok. but how do I do that that the images are taken from array of a class, so the pics will change in each item?

  28. Boxy Freezer Avatar

    Hi,

    One really enjoy the tut's, two it's great to actually find tut's that I can both understand and have explanations of each element as you walking the viewer through each step…. You don't even know how many tut's I've gone through the last few weeks that I just end up with a headache after….

    Despite that, I had a question about the step at 8:32 when you mentioned that we could add different images for each list item, so if I want list item 0 to be a picture of a fish and say fish in text, and list item 1 to have a picture of cheese and the text cheese, would I just add after setImageResource something like this —-

    String singleFishItem = getItem(position);
    TextView textBig = (TextView)customView.findViewById(R.id.textbig);
    ImageView pubstyle = (ImageView)customView.findViewById(R.id.mainimagelistview);

    textBig.setText(singleFishItem);
    pubstyle.setImageResource(R.drawable.fish,R.drawable.cheese);
    I'll probably mess around with it after this tutorial and see if it works but if not I figured I'd reference this while I have the tutorial paused..

    Thanks
    Jo

  29. Gokul Raj Sgr Avatar

    Thank You So much Bucky….I could not understand one thing. When did the Getview() Method called.We didn't called that method.

  30. Akshansh Mishra Avatar

    How to add different images for some case ??

  31. penguu Avatar

    Just wanted to say that your videos have helped me tremendously. I'm taking a senior elective in Mobile Application Development and your tutorials have breathed life back into me!

  32. Glacier Studios Avatar

    How could I do this with firebase

  33. saurabh sarpotdar Avatar

    Can we similary pass data from one list to another..? that too without startActivity()..means basically without using intents.?

  34. Sriram R Avatar

    Can you explain one with a custom object instead of String ?

  35. Jean Chapelle Avatar

    Hello, I've followed your tutorial step by step but I cannot have the click event to work on a custom view. Is that feature changed somehow ?

    I've finally copy paste your souce code from your git but even there, click event is not triggered.

  36. Radu Iulia Avatar

    I LOVE this video! It explains everything so clearly! Thank you so much!

  37. C89-HD Avatar

    …..if i have a button inside listview . i want to make this : when i click on button of the first item = open Activity2 & when i click on button of the second item = Open Activity3 ….
    what i must use for showing diffirent result when i click on button of each item of listview????????????????????????????????????????

  38. Abhishek Choudhary Khatkar Avatar

    But how exactly am I supposed to change Image?

  39. Bushra Khan Avatar

    Can you please make a tutorial for ExpandableLists? I really need the information and you're the best person that could do a thorough explanation

  40. Richard Abrot Avatar

    Dude you really got good tutorial compared to others. I'm planning to build an app having a table with multiple columns, does the header have to be in a separate layout? If so, how can I make it adjust to its contents on its datarows if they contain too many characters (e.g. a data item with long description)?

  41. Dre eam Avatar

    Your voice put me to sleep bucky. Its way too chill lol. but now thanks to you I can paint REM with all the colors of the wind!

    http://puu.sh/qAIJj/3a3a7c70f3.png

  42. MAHAD RASHID Avatar

    can someone send me a video tutorial link that explains how to add diffirent imaes at diffrent position

Leave a Reply

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