I want to create a custom adapter for my list view. Is there any article that can walk me through how to create one and also explain how it works?
I want to create a custom adapter for my list view. Is there any
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a class I had used for my project. You need to have a collection of your items which you want to display, in my case it’s
<Item>. You need to overrideView getView(int position, View convertView, ViewGroup parent)method.R.layout.itemlistrowdefines the row of theListView.In the
MainActivitydefineListViewlike this,