I'm not modifying my list while the scrolling occur. What do you mean by "list layout perfectly settled"? The list cell is a LinearLayout with inner views that have dynamically content dimensions. The example I gave is of a TextView with android:maxLines="3" attribute. most of the cells have 1 line of text in that field, but when there are 2 lines for example the scroll almost always reach that cell and stops. Should I somehow dismiss the cell layout inflating while on scroll?
On Monday, November 26, 2012 6:03:44 PM UTC+2, bob wrote: > > 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 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