Count Down Timer App in Android Programmatically

Hello Guys , 
   
   In this tutorial , we are making count down timer app in android. A Count Down Timer is a sequence of backward counting to indicate the time remaining before event closed. In this app we are using CountDownTimer  class for built these application. It easy to use, efficient and works. CountDownTimer is abstract class so method need to overridden to implement. A Count Down Timer is is an accurate timer that can be used in website or blog for special event. 
   
   In this app we are using progressbar , edittext , textview and two imageview under RelativeLayout. progressbar is used to display how much time remaining. edittext is used to enter the count down time. textview is used to display time and imageview is used to display icon like reset , start and stop.


CountDownTimer App MainScreen looking like below picture :
 




Let's get started.

Step 1 : Create a new Project.

Step 2 :  Adding Drawable
  • Here we write some custom drawable xml file for circular progressbar and also add some images for reset , start and stop.
  • Here we create two drawable resource file. drawable_circle_green.xml and drawable_circle_dark_blue.xml file.
  •  drawable_circle_green.xml   


  • drawable_circle_dark_blue.xml



Step 3 :  Edit activity_main.xml file

  • Here we add progressbar , edittext  , textview and imageview for creating attractive layout.



Step 4 :  Implement MainActivity.java file
  • Here we implement some method for create CountDownTimer App.


Now your CountDownTimer App is ready.

Output : 




I hope you like post. If you liked this post do comment ,share and promote the post 🙏 . Please stay with us and support.  🙏   

Post a Comment

2 Comments