2
"syncingIntervalsInt"시간을 대기 한 다음 코드를 수행하는 함수가 있습니다. 어떻게 카운트 다운을 만들 수 있습니까? * syncingIntervalsInt 후 있을때 감소율 위처리기의 남은 시간 계산
public void refreshRecycler()
{
countingTillSync = syncingIntervalsInt;
timerHandler = new Handler();
timerRunnable = new Runnable() {
@Override
public void run() {
//some code here
countingTillSync--;
}
timerHandler.postDelayed(this, syncingIntervalsInt*1000); //run every second
}
timerHandler.postDelayed(timerRunnable, syncingIntervalsInt*1000); //Start timer after 1 sec
}
이 코드 : syncingIntervalsInt 10 초로 설정 예를 들어, 나는이 카운트 다운 10,9,8 등이 여기에
하나의 텍스트 뷰를 설정하고자하는 것은 내 기능입니다 내가 기대하는 바가 아닌 1000 시간.
내 대답을 확인해 주시겠습니까? – KeLiuyue