Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start设置了一个固定的时间,倒计时不执行 #88

Open
gaoxuge521 opened this issue Nov 21, 2017 · 0 comments
Open

start设置了一个固定的时间,倒计时不执行 #88

gaoxuge521 opened this issue Nov 21, 2017 · 0 comments

Comments

@gaoxuge521
Copy link

<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   倒计时结束");
                }
            });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant