Ok
now i am able to get the log printed when the scroll has reached end.
I have used a custom adapter and in getView i have this code :-
if(p==(getCount()-1)){
Log.d("TAG++++++++++++++++++++++++++++++++++", "REACHED
BOTTOM");
if(scs!=null){
scs.onPageChanged();
Log.d("TAG++++++++++++++++++++++++++++++++++", "WILL WORK");
}
}
so far so forth both the logss are being printed and the onPageChanged
method is also working .
*Present Situtation :-*
10 images come and then after 3 seconds these 10 images are replaced by new
10 images due to the parser running in onPageChanged. The Adapter is being
set again and again. I want the new adapter to append the images to the
existing adapter.
On Sat, Mar 19, 2011 at 11:32 AM, Robin Talwar <[email protected]
> wrote:
> Yes exactly that is what i need.
> How to find that the user has reached the end of the scroll in grid view??
>
>
> On Sat, Mar 19, 2011 at 3:10 AM, Shane Isbell <[email protected]>wrote:
>
>> You don't need to customize the view. Implement pagination of the xml doc
>> on the server. When the user reaches the end of the data in your app, have
>> android pull down another page of data and then add the respective images to
>> your adapter.
>>
>> Shane
>>
>>
>> On Fri, Mar 18, 2011 at 2:20 PM, Abhishek Talwar <
>> [email protected]> wrote:
>>
>>> Hey guys
>>> I am performing xml parsing in my grid view.
>>> The xml has 10 images which are displayed in 4 rows and the last row
>>> having 1 image.
>>> I want when the user scrolls down and when the scroll reaches bottom i
>>> should be able to parse more images.
>>> So that it goes like an endless grid view whenever the scroll reaches
>>> bottom more images are loaded.
>>>
>>> Should i make a custom gridView or custom ImageAdapter??
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en