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 <morampudile...@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to