CountdownView
CountdownView copied to clipboard
start设置了一个固定的时间,倒计时不执行
<cn.iwgang.countdownview.CountdownView android:layout_marginTop="40dp" android:id="@+id/countdownview" android:layout_width="match_parent" android:layout_height="wrap_content" app:isHideTimeBackground="true" app:isShowDay="true" app:isShowHour="true" app:isShowMinute="true" app:isShowSecond="true" app:isShowMillisecond="false" app:timeTextColor="#000000" app:timeTextSize="10sp" app:isTimeTextBold="true" app:suffixGravity="bottom" app:suffixTextColor="#000000" app:suffixDay="天" app:suffixTextSize="8sp" app:suffixHour="时" app:suffixMinute="分" app:suffixSecond="秒" />
long time = (long)3* 60 60 1000; countdownview.start(time);
countdownview.setOnCountdownEndListener(new CountdownView.OnCountdownEndListener() {
@Override
public void onEnd(CountdownView cv) {
KLog.e("sss 倒计时结束");
}
});