Is your list layout perfectly settled when you call 
smoothScrollToPosition(0)?


Are you modifying your list after you call smoothScrollToPosition(0) but 
before the scrolling completes?



On Sunday, November 25, 2012 6:18:08 AM UTC-6, ziv wrote:
>
> Hi,
> I have an issue where smoothScrollToPosition(0) does not reach the start 
> position of the list. I've read all the related topics but couldn't find a 
> proper answer.
>
> After testing the issue thoroughly I believe that the issue happens when 
> the list items (cells) have dynamic size - by dynamic I mean that for 
> example a TextView in the cell has android:maxLines="3". I've noticed that 
> when all items text fit into one line then the scroll reaches the top, but 
> when one item has a text that fits only in two lines then the scroll stops 
> in that specific line. 
>
> How can fix this issue? my list items have several fields with dynamic 
> size.
> BTW setSelection(0) always works, but I don't want to give up on the 
> scrolling effect.
>
> Thanks,
> Ziv
>

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