您的位置:首页 > 移动开发 > Android开发

Android Gallery获取滑动停止的位置

2013-04-18 14:02 162 查看


public void setCallbackDuringFling (boolean
shouldCallback)

Since: API
Level 1

Whether or not to callback on any
getOnItemSelectedListener()
while
the items are being flinged. If false, only the final selected item will cause the callback. If true, all items between the first and the final will cause callbacks.

设置这个属性,再设置监听setOnItemSelectedListener()值会返回滑动停止后对应item的值
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: