{"id":20931289,"url":"https://github.com/ufreedom/countdowntextview","last_synced_at":"2025-07-11T16:17:16.879Z","repository":{"id":85856615,"uuid":"45680360","full_name":"UFreedom/CountDownTextView","owner":"UFreedom","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-04T04:40:43.000Z","size":940,"stargazers_count":30,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T19:33:22.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UFreedom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-06T12:18:41.000Z","updated_at":"2024-10-18T14:34:57.000Z","dependencies_parsed_at":"2023-03-11T20:45:41.351Z","dependency_job_id":null,"html_url":"https://github.com/UFreedom/CountDownTextView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UFreedom/CountDownTextView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UFreedom%2FCountDownTextView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UFreedom%2FCountDownTextView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UFreedom%2FCountDownTextView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UFreedom%2FCountDownTextView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UFreedom","download_url":"https://codeload.github.com/UFreedom/CountDownTextView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UFreedom%2FCountDownTextView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264851356,"owners_count":23673235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T21:40:49.366Z","updated_at":"2025-07-11T16:17:16.557Z","avatar_url":"https://github.com/UFreedom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CountDownTextView\nA simple countdown widget and easy to use.\n\n###Simple\n------\n\n![demo](./screenshots/demo.gif)\n\n###Usage\n------\n\n```` java\n    compile 'com.ufreedom.countdowntextview:library:0.1.0'\n````\n\n\nYou can give it a start time in the `SystemClock.elapsedRealtime` timebase, and it counts down from that.\n\nBy default it will not update the time value in text but give a callback `onTick()`,If you want to  display the current timer value ,Please use `setAutoDisplayText(true)`.\n\nBy default the display timer value is in the form \"MM:SS\" or \"HH:MM:SS\", you can use setTimeFormat() to use other  format :\n\n| Time Format   | Display  |\n| --------   |  ----  |\n| TIME_FORMAT_D_H_M_S     | DD:HH:MM:SS | \n| TIME_FORMAT_H_M_S        |  HH:MM:SS   |  \n| TIME_FORMAT_M_S        |   MM:SS    |  \n| TIME_SHOW_S        |    SS  | \n\n\n\n``` java\nlong timeInFuture = SystemClock.elapsedRealtime + 1000 * 60 * 20;//20 minutes\n\nCountDownTextView countDownTextView = findViewById(R.id.countDownTextView)\ncountDownTextView.setTimeInFuture(timeInFuture);\ncountDownTextView.setAutoShowText(true);\ncountDownTextView.start();\n\n```\n\n\n###Callback\n------\n\n``` java\n    public interface CountDownCallback {\n\n        /**\n         * Callback fired on regular interval.\n         * @param millisUntilFinished The amount of time until finished.\n         */\n        void onTick(CountDownTextView countDownTextView,long millisUntilFinished);\n\n        /**\n         * Callback fired when the time is up.\n         */\n        void onFinish(CountDownTextView countDownTextView);\n        \n    }\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufreedom%2Fcountdowntextview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufreedom%2Fcountdowntextview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufreedom%2Fcountdowntextview/lists"}