Reputation: 3075
I am using this link to create custom listview in my app.
First I want to display listview with 5 items. As I scroll the list it should parse data and load listview for next 5 items.
Listview row contains 5 textviews.
How can I achieve this?
Please help me.
Thanks in advance
Upvotes: 0
Views: 726
Reputation: 1006859
I want to display 5 items in single row
That has nothing to do with EndlessAdapter
. That has everything to do with the ListAdapter
you are putting into the EndlessAdapter
. Start by not using EndlessAdapter
and getting your list looking the way you want. Then, and only then, add in EndlessAdapter
to add more data to the list as the user scrolls.
There are countless examples online of how to create rows in a custom ListAdapter
that have more than one thing in them. Here is a free excerpt from my book on how to subclass ArrayAdapter
, override getView()
, and handle more than one widget in a row. You specifically will want to look at the "Customizing the Adapter" section.
Upvotes: 1