I use myListView.setSelection(anyPosition) to scroll the list so that
"anyPosition" is at the top of the list (e.g., anyPosition set to 410
results in the display of items 410 through 416 of 2255 items).  That
is the behavior I want so I've never experimented with scrollTo,
scrollBy, or setSelected.

On Jul 30, 9:07 am, Rodrigo Otávio <rodrigo.otavi...@gmail.com> wrote:
> Hi,
> I have a listview displaying my data.Ok.
> I want to set the scroll position in a position of my choice, but I
> just cant do it.
>  I used :
>
>          myListView.setSelection( anyPosition );
>          myListView.setSelected(true);
>
> and has not worked. I also tried :
>
>         myListView.scrollTo(0, PositionY);
>         and
>         myListView.scroolBy(0, PositionY);
>
> and there’s a strange behavior, this two methods doesn’t put the
> scrool in the “PositionY”, it made the “PositionY” be the first
> position in the list, cutting everything that exist before.
>
> Any help would be much appreciated.
> Thanks.
>
> Rodrigo.

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