Questions tagged [cwac-endless]

CWAC-endless descripes an EndlessAdapter solution for Android Listviews developed by CommonsWare. It can be used as a wrapper to make ListViews load new content after a certain amount of items have been loaded(scrolled).

The CWAC-EndlessAdapter for Android by CommonsWare can be used to create a GooglePlay like user experience refering to ListViews.
It can be directly used as adapter or wrapped around an existing adapter, to make a ListView load new content if a certain number of items had been loaded, the end of the list has been reached and there are still items left, which need to be added to the list.
The source code can be found here.

24 questions
9
votes
4 answers

Android: visible ListView images flicker when adding data to ArrayAdapter

I have a custom adapter which extends ArrayAdapter, it implements the view holder patterns to show data (text + image) from a web service. for lazy loading of the images I use the async tasks pattern from the advanced training in the Android's…
4
votes
1 answer

implementing the Endless Adapter

I get the entire data from the Server by using doInBackground() method as shown below. class DataLoader extends Activity{ public void onCreate() { ............................... new AsyncTask1().execute(); } …
Apparatus
  • 411
  • 1
  • 5
  • 19
4
votes
1 answer

Simple ASP.NET Endless Pagination

I'm looking to implement some simple endless pagination for a comments section, similar to Youtube comments where you click Show More at the bottom and it loads a few more comments but maintains state for the previous ones. I think I can do it in an…
User101
  • 748
  • 2
  • 10
  • 29
2
votes
1 answer

Disable click for pending view of cwac-endless adapter

I am using cwac-endless adapter , and i am facing problems in disabling the click on the pending view while i try to load more results. This is the constructor i am using for my custom adapter which extends EndlessAdapter. R.layout.pending which…
Yashwanth Kumar
  • 28,931
  • 15
  • 65
  • 69
2
votes
1 answer

EndlessAdapter not adding item correctly to custom ListView

Im using the cwac-endless EndlessAdapter with a custom ListViewAdapter. With an AsyncTask i get the data form he webserver in 2 phases. 1) i get all the id's of the elements 2) using the EndlessAdapter i want to load say 4 elements at a time (i get…
Pheonix7
  • 2,131
  • 5
  • 21
  • 38
2
votes
0 answers

cwac Endless Fragment Demo Issue - Using Within My Own Fragment Format

I have a basic working app generated by using the ADT wizard. As a result I have a basic fragment format (1 ) which I have been using. I want to take the demo code (2) and use it how ever if I take the fragment example as is the application crashes…
2
votes
1 answer

The method getActivity() is undefined for the type DataAdapter

I'm trying to use the demo provided by cwac... how ever when I have pulled it in to my fragment I am getting the error "The method getActivity() is undefined for the type DataAdapter" I am sure its a context thing so I have tried a number of ways to…
Terran Brown
  • 509
  • 10
  • 25
1
vote
1 answer

Error in wrapping a custom adapter around cwac-endless adapter

I'm using a custom adapter and wrapping it around the cwac-endless adapter. The problem is that the wrapping condition is being ignored and the method inside the cacheInBackground() is being called infinitely. I'm attaching the concerned code.Please…
Dinesh Venkata
  • 1,087
  • 1
  • 9
  • 22
1
vote
1 answer

How can I use a custom adapter with the cwac-endless adapter?

I want to add the endless adapter functionality to my custom adapter. How can I use this combination? Thank you.
Dinesh
  • 181
  • 1
  • 3
  • 17
1
vote
0 answers

How to enable lazy loading of listview items while scrolling up as well as scrolling down the listview in Android?

How to use cwac's endlessadapter library to enable lazy loading of listview items while scrolling up as well as scrolling down the listview in Android? I have previously used the endlessadapter library to enable lazy loading while scrolling down but…
1
vote
0 answers

android commonsware endless adapter fetch content before list reaches the end

I am using the endless adapter from https://github.com/commonsguy/cwac-endless This works great for me, but I am looking to fetch rows not when the users reach the end, but rather before. In other words, I prefer that the user will not see the…
Oved Yavine
  • 442
  • 6
  • 12
1
vote
0 answers

How to use custom adpter with endless adapter

I am trying to work with endless adapter , i followed this example http://droidista.blogspot.com/2011/04/using-cwacs-endlessadapter-with-custom.html and I have tried this code public class MainActivity extends Activity { static int…
Avi Kumar
  • 4,403
  • 8
  • 36
  • 67
1
vote
0 answers

Errors symbol is shown when importing CW Endless Adapter project

I have downloaded the zip file to implement the CW-Endless Adapter to my customlistview from this link. When I extracted it and imported to eclipse, the ! is shown in red color as shown in the below picture. Can someone please help me resolve…
Apparatus
  • 411
  • 1
  • 5
  • 19
1
vote
0 answers

PullToRefresh + EndlessAdapter gives IndexOutofBoundException

I am trying to use PulltoRefresh and EndlessAdapter, the first time that the app run, the list loads very well, but when it gets in the end to load more data, it crash. Library EndLessAdapter: https://github.com/commonsguy/cwac-endless Library…
Marckaraujo
  • 7,422
  • 11
  • 59
  • 97
0
votes
2 answers

Endless List Adapter CWAC works with ActionBarActivity and how to trigger loading at bottom of the list?

I am trying to implement endless list in an application where you get first 25 results from webservice and when it goes to the bottom of the list it loads the next 25 and so on until it reaches the total results. But I am lost at how does the…
1
2