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的值
本文介绍了一个属性设置方法,通过此方法可以控制滑动过程中是否触发getOnItemSelectedListener()的回调。当设置为true时,在滑动过程中的每个item都会触发回调;若设置为false,则仅在滑动结束后选定的item才会触发回调。
150

被折叠的 条评论
为什么被折叠?



