{"id":13645665,"url":"https://github.com/capur16/DigitSpeedView","last_synced_at":"2025-04-21T14:32:01.161Z","repository":{"id":78229942,"uuid":"78860643","full_name":"capur16/DigitSpeedView","owner":"capur16","description":"Awesome digital speedometer library for android","archived":false,"fork":false,"pushed_at":"2017-09-19T11:19:54.000Z","size":429,"stargazers_count":90,"open_issues_count":1,"forks_count":27,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T18:43:23.397Z","etag":null,"topics":["android","digital-speedometer","library"],"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/capur16.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}},"created_at":"2017-01-13T15:21:18.000Z","updated_at":"2024-09-12T23:39:44.000Z","dependencies_parsed_at":"2023-07-28T07:15:18.165Z","dependency_job_id":null,"html_url":"https://github.com/capur16/DigitSpeedView","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/capur16%2FDigitSpeedView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capur16%2FDigitSpeedView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capur16%2FDigitSpeedView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capur16%2FDigitSpeedView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capur16","download_url":"https://codeload.github.com/capur16/DigitSpeedView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070243,"owners_count":21369842,"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","digital-speedometer","library"],"created_at":"2024-08-02T01:02:39.320Z","updated_at":"2025-04-21T14:32:00.744Z","avatar_url":"https://github.com/capur16.png","language":"Java","readme":"# DigitSpeedView\n\n[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)\n[ ![Download](https://api.bintray.com/packages/capur16/maven/DigitSpeedView/images/download.svg?version=1.0.3) ](https://bintray.com/capur16/maven/DigitSpeedView/1.0.3/link)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DigitSpeedView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5103)\n\nAwesome digital speedometer for android, [see project on GitHub](https://github.com/capur16/DigitSpeedView).\n\n\u003cimg src=\"https://github.com/capur16/DigitSpeedView/blob/master/images/DigitSpeedView1.png\" width=\"33%\" /\u003e\n\u003cimg src=\"https://github.com/capur16/DigitSpeedView/blob/master/images/DigitSpeedView2.png\" width=\"33%\" /\u003e\n\u003cimg src=\"https://github.com/capur16/DigitSpeedView/blob/master/images/DigitSpeedView3.png\" width=\"33%\" /\u003e\n\nCompatibility\n-------------\n\nThis library is compatible from API 14 (Android 4.0).\n\nDownload\n-------------\n\n**add this line to** `build.gradle`\n\n```gradle\n\ndependencies {\n\t    compile 'com.github.capur16:digitspeedviewlib:1.0.3'\n}\n\n```\n\nfor **maven**\n\n```maven\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.capur16\u003c/groupId\u003e\n  \u003cartifactId\u003edigitspeedviewlib\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.3\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nSimple Usage\n-------------\nadd DigitSpeedView to your `Layout.xml`.\u003cbr\u003e\n```xml\n\n\u003ccom.github.capur16.digitspeedviewlib.DigitSpeedView\n            android:id=\"@+id/digit_speed_view\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            app:speed=\"16\" /\u003e\n\n```\n\nAdvanced Usage\n-------------\n\n```xml\n\n\u003ccom.github.capur16.digitspeedviewlib.DigitSpeedView\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                app:backgroundColor=\"@color/my_background_color\"\n                app:disableBackgroundImage=\"false\"\n                app:showUnit=\"true\"\n                app:backgroundDrawable=\"@drawable/my_background_image\"\n                app:speed=\"30\"\n                app:speedTextColor=\"@android:color/holo_blue_light\"\n                app:speedTextSize=\"20dp\"\n                app:unit=\"mph\"\n                app:unitTextColor=\"@android:color/holo_blue_light\"\n                app:unitTextSize=\"5dp\" /\u003e\n\n```\n\nUpdate Speed From Java\n-------------\n\n```\nDigitSpeedView digitSpeedView = (DigitSpeedView)findViewById(R.id.digit_speed_view);\ndigitSpeedView.updateSpeed(120);\n```\n\nOnSpeedChangeListener\n-------------\n\n```\nDigitSpeedView digitSpeedView = (DigitSpeedView)findViewById(R.id.digit_speed_view);\ndigitSpeedView.setOnSpeedChangeListener(new OnSpeedChangeListener() {\n    @Override\n    public void onSpeedChange(DigitSpeedView digitSpeedView, boolean isSpeedUp) {\n        //Current speed: digitSpeedView.getSpeed();\n    }\n});\n```\n\nLicense\n-------\n\n    Copyright 2017 Riccardo Capuani\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%2Fcapur16%2FDigitSpeedView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapur16%2FDigitSpeedView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapur16%2FDigitSpeedView/lists"}