안녕하세요 

ExpandableList 를 사용하는데 문제가 있어서 질문 드립니다.


ExpandableListAdapter 쪽에 각 리스트의 getGroupView 마다 CountDownTimer를 달아


구동을 시키고 있습니다.

그런데 그룹을 클릭할 때마다 CountDownTimer의 public void onTick(long millisUntilFinished) { 함수가 호출이 됩니다.
그래서 그룹을 한번클릭해서 펼쳤다 다시 클릭하여 접으면 1초에 3번씩 위의 onTick이 호출이 됩니다.

adapter에서 어떻게 건드려야 할지 난감하네요... 도움 요청드립니다..
아래는 소스입니다.


_text = (TextView) convertView.findViewById(R.id.timer);
for(int i = 0; i<ExpandablePushMain.timeCount; i++){
if(groupPosition == i){
_timer = new CountDownTimer(ExpandablePushMain.totalTime[i], b){
public void onTick(long millisUntilFinished) {
String tVal = TimeValue3(millisUntilFinished);  // long형 시간을 hh:mm:ss로 변경
_text.setText("(" + tVal + ")");
}
public void onFinish() {    
_text.setText("finshed");   
}
};
_timer.start();
}
}

return convertView;
}