菜单闪烁不起作用

时间:2015-08-24 12:19:06

标签: html css html5 css3

菜单中有四个链接。我想在联系我们的菜单上给出一个闪烁的效果。我第一次加载这段代码时工作正常。点击其他菜单后(除了联系我们),它停止闪烁。请帮我解决这个问题。这是我的代码

@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
    super.setUserVisibleHint(isVisibleToUser);

    // Make sure that we are currently visible
    if (this.isVisible()) {
        // If we are becoming invisible, then...
        if (!isVisibleToUser) {
            //Reset your animation, as fragment is being scrolled out of view
        }
    }
}

0 个答案:

没有答案