dexapier / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Property for set the scroll position in the ListView widget / edit items #664

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please, excuse if I write in the wrong place.

The ListView (I'm using fullscreenwrapper2 but I believe is originated in sl4a) 
can be populated, but the support for set an arbitrary scroll position or 
modify a item is missing (almost I can't find how to do!).
For example, if you populate the listview with a hundred items and need to 
change for example the 50th item, you need to reload all the items and the 
scroll go back to the first position.
Or if the user is in the 50th item and you need to replace the item list, when 
you set the new items the scroll go back to the top.

The documentation is here:
http://developer.android.com/reference/android/widget/ListView.html

I believe this methods can be helpfull for set a scroll position:
setSelection/smoothScrollToPosition

For edit/remove items from the list, I not found any direct method.

Please excuse my english!.

Original issue reported on code.google.com by slez...@dosalinfinito.com.ar on 3 Oct 2012 at 12:27