Toast on top of ListView in Android?

Posted by sunil on Stack Overflow See other posts from Stack Overflow or by sunil
Published on 2010-05-05T11:58:46Z Indexed on 2010/05/06 5:28 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

Hi,

I have a listview in my Android Application. Now, when the user presses Next Button other contents will be loaded into the listview. What I want is that if there are no more contents available then there should be a toast displayed indicating that there are no more data available.

Say, for example I have a total of 55 data available and I am displaying only 30 of them in one listview. So, when the user presses Next for the first time next 25 records will be visible. If the user again presses the Next button then a toast should be displayed on top of the last listview that had last 25 records.

Currently I get an error as IndexOutOfBoundException : Invalid location 15 size is 1.

Can someone suggest how is it possible?

Regards

Sunil

© Stack Overflow or respective owner

Related posts about toast

Related posts about android