[android-developers] Re: How do ListViews exactly work?

2010-04-27 Thread Pal
I agree with your choice... If you only need smooth scrolling the easiest way is to simulate that touch event - feed dispatchTouchEvent with your MotionEvents as you do. But the challenge here is to compute right scroll positions. Hope you will archive that! Good luck Pavel On Apr 27, 9:24 pm,

[android-developers] Re: How do ListViews exactly work?

2010-04-27 Thread Moto
Hi Pavel, Thanks for your reply! I agree with some of the information you provided. So it seems ListView is keeping track of the list state. To name a few; scroll position, visible items, user input. I guess the main idea here is in order to create a completely custom ListView we need to handle

[android-developers] Re: How do ListViews exactly work?

2010-04-27 Thread Pal
Hi Moto, at this moment I'm working on my own custom ListView implementation so I can share some investigations I've found about ListView internals. 1) First of all ListView is adapter view that means that it uses adapter object to get it's child views - take a look at ArrayAdapter.getView(int, Vi

[android-developers] Re: How do ListViews exactly work?

2010-04-26 Thread Moto
I hope someone can shed some light? :( On Apr 25, 9:37 pm, Moto wrote: > I'm trying to figure out how it's been designed.  How it holds its > items?  How do I get a hold of the scrolling container?  How can I > know it's exact scrolling position?  How can I scroll it to an exact > position? > > I