{"id":13643532,"url":"https://github.com/iballan/TimelyView","last_synced_at":"2025-04-21T02:30:32.709Z","repository":{"id":143286229,"uuid":"70238043","full_name":"iballan/TimelyView","owner":"iballan","description":"Animated Time View like Timely app","archived":false,"fork":false,"pushed_at":"2016-11-30T08:53:00.000Z","size":374,"stargazers_count":74,"open_issues_count":0,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T15:42:52.223Z","etag":null,"topics":["android","androidlibrary","timely"],"latest_commit_sha":null,"homepage":null,"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/iballan.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-07T10:46:35.000Z","updated_at":"2024-06-14T04:45:06.000Z","dependencies_parsed_at":"2023-08-01T05:16:22.283Z","dependency_job_id":null,"html_url":"https://github.com/iballan/TimelyView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iballan%2FTimelyView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iballan%2FTimelyView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iballan%2FTimelyView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iballan%2FTimelyView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iballan","download_url":"https://codeload.github.com/iballan/TimelyView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249986022,"owners_count":21356310,"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":["android","androidlibrary","timely"],"created_at":"2024-08-02T01:01:48.915Z","updated_at":"2025-04-21T02:30:32.135Z","avatar_url":"https://github.com/iballan.png","language":"Java","readme":"TimelyView\n==============\n\n[![](https://jitpack.io/v/iballan/TimelyView.svg)](https://jitpack.io/#iballan/TimelyView)\n\n## Animated Time View like Timely app\n\nScreenshots:\n--------\n\n![Screenshots/screenshot1](https://raw.githubusercontent.com/iballan/TimelyView/master/Screenshots/TimelyTimeView_screenshot.gif) \t ![Screenshots/screenshot2](https://raw.githubusercontent.com/iballan/TimelyView/master/Screenshots/TimelyView_Screenshot.gif)\n\n\n\nUsage :\n\nXML Layout:\n``` xml\n\u003ccom.mbh.timelyview.TimelyTimeView\n   android:id=\"@+id/ttv\"\n   android:layout_width=\"wrap_content\"\n   android:layout_height=\"60dp\"\n   app:rounded_corner=\"true\"\n   app:text_color=\"true\"\n   app:seperatorsTextSize=\"50\"\n   android:layout_gravity=\"center\"/\u003e\n\t   \n\t   \n\u003ccom.mbh.timelyview.TimelyShortTimeView\n\tandroid:id=\"@+id/tstv_hours\"\n\tandroid:layout_width=\"match_parent\"\n\tandroid:layout_height=\"wrap_content\"\n\tapp:rounded_corner=\"true\"\n\tapp:text_color=\"true\"\n\tapp:seperatorsTextSize=\"50\"/\u003e\n```\n\nJava:\n``` java\n    public class MainActivity extends Activity {\n\t\t\tprivate TimelyTimeView ttv; \n\t\t\tTimelyShortTimeView tstv_hours;\n\t\t\t@Override\n\t\t\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\t\tsetContentView(R.layout.activity_main);\n\t\t\t\t// TimelyTimeView\n\t\t\t\tttv = (TimelyTimeView) findViewById(R.id.ttv);\n\t\t\t\tttv.setTextColor(Color.WHITE);\n\t\t\t\tttv.setSeperatorsTextSize(50);\n\t\t\t\t\n\t\t\t\t// Then whenever you want to set the time and animate to it\n\t\t\t\tttv.setTime(\"00:00:00\"); // As formatted String \n\t\t\t\t// OR\n\t\t\t\tttv.setTime(new int[]{12:12:12});\n\t\t\t\t// OR\n\t\t\t\tttv.setTime(new Date());\n\t\t\t\t\n\t\t\t\t// ------------------\n\t\t\t\t// TimelyShortTimeView for (hour:min)\n\t\t\t\ttstv_hours = (TimelyShortTimeView) findViewById(R.id.tstv_hours);\n\t\t\t\ttstv_hours.setTextColor(Color.BLACK);\n\t\t\t\ttstv_hours.setTimeFormat(TimelyShortTimeView.FORMAT_HOUR_MIN); // can be set as TimelyShortTimeView.FORMAT_MIN_SEC\n\t\t\t\ttstv_hours.setSeperatorsTextSize(50);\n\t\t\t\t\n\t\t\t\t// Then whenever you want to set the time and animate to it\n\t\t\t\tttv.setTime(\"00:00\"); // As formatted String \n\t\t\t\t// OR\n\t\t\t\tttv.setTime(new int[]{20:20});\n\t\t\t\t// OR\n\t\t\t\tttv.setTime(new Date());\n\t\t\t\t// OR\n\t\t\t\tlong timeAsMilliseconds = new Date().getTime();\n\t\t\t\tttv.setTime(timeAsMilliseconds);\n\t\t\t}\n   }\n```\n\nInstall\n--------\n\nYou can install using Gradle:\n\n```gradle\n\trepositories {\n\t    maven { url \"https://jitpack.io\" }\n\t}\n\tdependencies {\n\t    compile 'com.github.iballan:TimelyView:1.0.2'\n\t}\n```\n\nContact me:\n--------\n\nTwitter: [@mbh01t](https://twitter.com/mbh01t)\n\nGithub: [iballan](https://github.com/iballan)\n\nWebsite: [www.mbh01.com](http://mbh01.com)\n\nCredits:\n--------\n\nTimelyTextView : https://github.com/adnan-SM/TimelyTextView\n\nSriram Ramani article : http://sriramramani.wordpress.com/2013/10/14/number-tweening/\n\nLicense\n--------\n\n    Copyright 2014 Mohamad Ballan.\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.","funding_links":[],"categories":["日历时间"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiballan%2FTimelyView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiballan%2FTimelyView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiballan%2FTimelyView/lists"}