Friday, March 11, 2011

Re: [android-developers] GridView.scrollTo(int,int) is not working

Thanks..

that works for me ..

On Fri, Mar 11, 2011 at 1:13 PM, Romain Guy <romainguy@android.com> wrote:
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 <morampudileela@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Romain Guy
Android framework engineer
romainguy@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



--
Thanks & Regards,
Leela Krishna m

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

No comments:

Post a Comment