//计时2s消失
private void initTimer() {

if (timer == null) {
timer = new Timer();
}

if (timerTask == null) {
timerTask = new TimerTask() {
@Override
public void run() {
runOnUiThread(new Runnable() {
@Override
public void run() {
countDown--;
if (countDown == 0) {
stopTimer();
tvFollow.setVisibility(View.GONE);

countDown = 2;
}
}
});
}
};
}

if (timer != null && timerTask != null) {
timer.schedule(timerTask, 500, 500);
}
}

private void stopTimer() {
if (timer != null) {
timer.cancel();
timer = null;
}

if (timerTask != null) {
timerTask.cancel();
timerTask = null;
}
}