{"id":37024264,"url":"https://github.com/jsaman19/easycountdowntimer","last_synced_at":"2026-01-14T02:55:55.516Z","repository":{"id":56485416,"uuid":"101787949","full_name":"jsaman19/easyCountDownTimer","owner":"jsaman19","description":"A simple android library to countdown timer textview for api 14+","archived":false,"fork":false,"pushed_at":"2021-05-09T08:48:10.000Z","size":265,"stargazers_count":62,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-28T10:17:44.724Z","etag":null,"topics":["android","countdown-timer","custom-view","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsaman19.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-29T17:26:03.000Z","updated_at":"2023-04-26T11:56:14.000Z","dependencies_parsed_at":"2022-08-15T19:40:24.636Z","dependency_job_id":null,"html_url":"https://github.com/jsaman19/easyCountDownTimer","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/jsaman19/easyCountDownTimer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsaman19%2FeasyCountDownTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsaman19%2FeasyCountDownTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsaman19%2FeasyCountDownTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsaman19%2FeasyCountDownTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsaman19","download_url":"https://codeload.github.com/jsaman19/easyCountDownTimer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsaman19%2FeasyCountDownTimer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","countdown-timer","custom-view","java"],"created_at":"2026-01-14T02:55:54.829Z","updated_at":"2026-01-14T02:55:55.502Z","avatar_url":"https://github.com/jsaman19.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyCountDownTimer\nA simple android library to countdown timer textview for api 14+\n\n## Screan shot\n\n![screan_shot](https://user-images.githubusercontent.com/6823491/30234511-0261af9c-9513-11e7-964b-b0f6c45f6261.gif)\n\n![screan_shot](screenshots/Screenshot_20191230-190735.png)\n\n## Setup\n\nThe simplest way to use easyCountDownTimer is to add the library as aar dependency to your build.\n\n#### Maven\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003eir.samanjafari.easycountdowntimer\u003c/groupId\u003e\n  \u003cartifactId\u003eeasycountdowntimer\u003c/artifactId\u003e\n  \u003cversion\u003e2.5.0\u003c/version\u003e\n  \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n#### Gradle\n\n```\nbuildscript {\n    repositories {\n        google()\n        jcenter()\n        mavenCentral() // Add this Line\n    }\n    dependencies {\n        classpath \"com.android.tools.build:gradle:4.1.3\"\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        jcenter()\n        mavenCentral() // Add this line\n    }\n}\n\ndependencies {\n    implementation 'ir.samanjafari.easycountdowntimer:easycountdowntimer:2.5.0'\n}\n```\n\n#### Usage\n\nAdd the following code to your view\n\n```xml\n\u003cir.samanjafari.easycountdowntimer.EasyCountDownTextview\n        android:id=\"@+id/easyCountDownTextview\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_centerInParent=\"true\"\n        app:hours=\"0\"\n        app:minute=\"1\"\n        app:second=\"10\"\n        app:showHours=\"true\"\n        app:textSize=\"12sp\"\n        app:digitBackground=\"@android:color/transparent\"\n        app:textColor=\"#9c9c9c\"\n        app:setAnimation=\"true\"\n        app:colonColor=\"#000\"\n        app:showDays=\"true\"\n        app:daysLabel=\"D\"\n        app:days=\"1\"\n        app:start_automatically=\"false\"\n        app:useFarsiNumeral=\"true\"\n        /\u003e\n```\n\nwhit the following code you can listen to onFinish or onTick timer\n\n```java\nEasyCountDownTextview countDownTextview = (EasyCountDownTextview) findViewById(R.id.easyCountDownTextview);\neasyCountDownTextview.setTime(1, 1, 1, 1);\n        easyCountDownTextview.setOnTick(new CountDownInterface() {\n            @Override\n            public void onTick(long time) {\n                \n            }\n\n            @Override\n            public void onFinish() {\n\n            }\n        });\n```\nhow to set time programmatically ?\n\n```java\nEasyCountDownTextview easyCountDownTextview = (EasyCountDownTextview) findViewById(R.id.easyCountDownTextview);\neasyCountDownTextview.setTime(1,1, 30, 15);// setTime(days, hours, minute, second)\n```\n\nhow to set custom font\n\n```java\nTypeface typeface = ResourcesCompat.getFont(this, R.font.my_font);\neasyCountDownTextview.setTypeFace(typeface);\n```\n\nhow to pause and resume timer\n\n```java\neasyCountDownTextview.pause();\n\neasyCountDownTextview.resume();\n```\n\n## Licence\n\nCopyright 2017 Saman Jafari\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\n## Author\n\nSaman Jafari\n\nemail: saman.jafari69@gmail.com\n\ngithub: https://github.com/jsaman19\n\nsite : http://samanjafari.ir\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsaman19%2Feasycountdowntimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsaman19%2Feasycountdowntimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsaman19%2Feasycountdowntimer/lists"}