문제

How can you trigger an onFling() without the user actually touching the device?

Actually my need is a little different than that. I have a horizontally-scrolling Gallery, and below that is a row of buttons. I want the user to be able to advance the gallery to the next View just by tapping a bottom-row button. Let's call this method next().

I envision calling the next() from the OnClickListener.

도움이 되었습니까?

해결책

As it happens, there is a method available to Gallery. It is setSelected(int index).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top