Skip to content

yuke196/CountDownView

Repository files navigation

CountDownView

=== ###what is this

show a android TextView which can count down time

=== ###useage

  • #####configuration
  • if you are using Android Studio ,you can use this view with follow simple config:

config your build.gradle dependencies in your app module as this

dependencies {
           compile 'com.sharyuke.view:sharyuke-view:0.0.5'
       }
  • if you are using ADT(Android Develop Tools) , you can download jar file ,and put it into your libs directory.
  • #####code in java file

start counting

    CountDownView mCountDownView;
    mCountDownView = (CountDownView)findViewById(R.id.xxxx);
    mCountDownView.setUnits("day", "hour", "minute", "second");
    mCountDownView.setCountTime(1000);
    mCountDownView.startCount();
       

stop counting

    mCountDownView.stopCount();
 

callBack

mCountDownView.setOnCountOverListener(new CountDownView.CountOver() {
      @Override
      public void onCountOver() {
		//something to do
      }
    });
    

anchor's homePage :yuke

  • tips: the newest version is 0.0.5

About

show a TextView which can count down time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors