GridView doesn't support the use of scrollTo(). Also, scrollTo() takes
distances in pixels. Use setSelectedPosition(20) instead.

On Thu, Mar 10, 2011 at 11:28 PM, leela <[email protected]> wrote:

> Hi all,
>
> while populating my GridView/listView  i want to show 20th item
> first..
>
> i was tried to scroll up to that  position by calling
> gridView.scrollTO(20,20);
>
> this is not working.. means it's always showing first item..
>
> any suggestions
>
> Thanks in Advance...
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them

-- 
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

Reply via email to