Yep, that's what I did for a regular list-view that acts like a slot-machine 
roll.
Return a value in your adapter's getCount() method that is a very very very 
high multiple of the number of actual items in your list-view's adapter.

private static final int MULTIPLIER = 1000000; // some LARGE even number.

public int getCount() {
    return myArrayList.size() * MULTIPLIER;
}

public Object getItem(int position) {
    int actualPosition = position % myArrayList.size();
    return myArrayList.get(actualPosition);
}

And put the initial position of your list-view at (myAdapter.getCount() / 2) 
+ actualInitialPosition)), where actualInitialPosition is probably 0 (first 
item in your list).
And make sure not to show any scrollbars.


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