Android App Development for Beginners - 48 - Custom ListView Adapter

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

This was honestly helpful... You spoke clearly, you had a good mic, you recorded with good quality, and were not a pain to listen to. Most android tutorials are made by people with REALLY heavy Indian accents and they are very hard to pay attention to, but not yours. Great tutorial!

bobjb
Автор

Imports:


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;

crazyjeep
Автор

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!

penguu
Автор

I just want to point out that instead of:
View customView = buckysInflater.inflate(R.layout.custom_row, parent, false);

it should really be:
View customView = convertView;
if(customView == null){
customView = buckysInflater.inflate(R.layout.custom_row, parent, false);
}

there's no reason to inflate every time, unless you are loading different resource files.

cheka
Автор

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

brunoluan
Автор

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.

zenryucds
Автор

You are a really good teacher and I am like a small kid looking at youtube. I am learning!

TheRic
Автор

Man thanks for this Basic Information about Custom ListView Adapter. Helped a lot! I worked with fragments, so I had to use: ArrayAdapter<String> objAdapter = new CustomSaleOfDayAdapter(this.getActivity(), food);
instead of
ListAdapter buckysAdapter = new CustomAdapter(this, food)

great tut!

americanaccounts
Автор

Make sure file name of image are all lowercase, error is thrown if file name has a capitals.

SuperMegaGamer
Автор

hey thenewboston, keep up the good work on all your programming videos.You explain each step very well.

sithlord
Автор

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

ensiehmollazadeh
Автор

Nice man! Thanks! I finally got custom adapter :D
Your voice sound like Franklin from GTA V xD

orton
Автор

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

fransringo
Автор

you are the best channel on youtube. so helpful!!!

logantheyoyoman
Автор

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

raduiulia
Автор

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

Greg-qdoh
Автор

hey bucky im getting this problem when i launch my app and it takes me to this error:


        View customView = buckysInflater.inflate(R.layout.custom_row, parent, false);

"Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling"

harrynewton
Автор

THANK YOU! THANK YOU MUCH! JUST WHAT I NEEDED!!
Love your tutorials!! <3<3

TripleSEvaa
Автор

Thanks Bucky, very helpful and understanding. I do have a question, could you point me what should i do if i want for a specific textview to have a specific imageview. For example for the bacon row to have a pic with bacon, for the ham row to have a pic with ham and so on ?

heviutza
Автор

Hey, I want to show the ListView in a fragment (which is one Tab of a SlidingTabs layout). Could you please tell me what I have to adapt so it is working in a fragment (I'm trying to do a newsfeed with data from JSON).

ThomasS