开发者

Trigger Gallery OnFling without GUI Input

开发者 https://www.devze.com 2023-02-04 16:49 出处:网络
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

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开发者_如何学Go 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).

0

精彩评论

暂无评论...
验证码 换一张
取 消