How can I do a Carroll Image Gallery that can never end .. after the last image and before the last image first.
I did this by creating my own list-adapters (subclasses from the base adapter). I have coded my list-adapters in such a way that its getCount () method returns a HUUGG number. And if item 'x' is selected, then this item matches the adapter position = 'adapter.gate () / 2 + x' and for my adapter's method getItem (the condition of the int), I have my array I get the items on the index that backs up the adapter: (position-getCount () / 2)% myDataItems.length You need to do some more 'special' stuff to do all this well, but You get this idea. In principle, it is possible to reach the end or the beginning of the list, but if you meet millions of or so, then it is hard to do :-)
Comments
Post a Comment