如果用户手动完成,如何延迟自动滑动 viewpager

how to delay automatically swiped view pager if user has done it manually

我有查看寻呼机显示来自 URL 的三张图片。在 on create main class 中,我设置了一个定时器,在一段时间后滑动页面。

The problem is in both way the same method set current item is called how to distinguish whether it is called by a timer or manually by the user.

我想做什么。

**我想延迟自动化或重置计时器,这样页面滑动就不会被落后 运行 的计时器干扰。 **

需要你宝贵的suggestion.here就是[code(pastebin)][1]

您必须重写 Activity

上的一个方法
/*
    Called whenever a key, touch, or trackball event is dispatched to the activity. 
    Implement this method if you wish to know that the user has interacted
    with the device in some way while your activity is running.

    Note that this callback will be invoked for the touch down action
    that begins a touch gesture, but may not be invoked for the touch-moved 
    and touch-up actions that follow.

*/
@Override
public void onUserInteraction() {
   super.onUserInteraction();
   postPoneAnimation();  << do your postponing there
}