Skip to content

w576258809/CountdownView

 
 

Repository files navigation

CountDownView -- 启动页倒计时

  • gradle
compile 'cn.lemon:countdownview:0.2.0'

使用

<cn.lemon.view.CountdownView
    android:id="@+id/countdown"
    android:layout_width="56dp"
    android:layout_height="56dp"
    app:text="跳过"
    app:text_color="@android:color/white"
    app:text_size="13dp"
    app:update_time="500"
    app:total_time="5000"
    app:bg_color="#248742"
    app:progress_width="2dp"
    app:progress_hint_color="#94595b59"/>
mCountdownView = (CountdownView) findViewById(R.id.countdown);
mCountdownView.start();
mCountdownView.setOnFinishAction(new Action() {
    @Override
    public void onAction() {
        Toast.makeText(MainActivity.this,"结束",Toast.LENGTH_SHORT).show();
    }
});
mCountdownView.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        Toast.makeText(MainActivity.this,"点击",Toast.LENGTH_SHORT).show();
    }
});

demo

About

Android 启动页倒计时 View

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%