android - How to have scrolling animation programmatically -


I am trying to implement the scroll animation for the gallery.

setSelection method

I have found this problem right now. I needed to move just one element of the gallery, so the best solution for me was to simulate the event below.

  myGallery.onKeyDown (KeyEvent.KEYCODE_DPAD_RIGHT, null);  

or

myGallery.onKeyDown (KeyEvent.KEYCODE_DPAD_LEFT, blank);

Comments