Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/capur16/DigitSpeedView
Awesome digital speedometer library for android
https://github.com/capur16/DigitSpeedView
android digital-speedometer library
Last synced: 3 months ago
JSON representation
Awesome digital speedometer library for android
- Host: GitHub
- URL: https://github.com/capur16/DigitSpeedView
- Owner: capur16
- License: apache-2.0
- Created: 2017-01-13T15:21:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T11:19:54.000Z (about 7 years ago)
- Last Synced: 2024-06-16T06:38:44.508Z (5 months ago)
- Topics: android, digital-speedometer, library
- Language: Java
- Homepage:
- Size: 419 KB
- Stars: 90
- Watchers: 9
- Forks: 25
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - DigitSpeedView - 独特的安卓数字测速仪 (其他)
README
# DigitSpeedView
[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)
[ ![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)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DigitSpeedView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5103)Awesome digital speedometer for android, [see project on GitHub](https://github.com/capur16/DigitSpeedView).
Compatibility
-------------This library is compatible from API 14 (Android 4.0).
Download
-------------**add this line to** `build.gradle`
```gradle
dependencies {
compile 'com.github.capur16:digitspeedviewlib:1.0.3'
}```
for **maven**
```maven
com.github.capur16
digitspeedviewlib
1.0.3
pom```
Simple Usage
-------------
add DigitSpeedView to your `Layout.xml`.
```xml```
Advanced Usage
-------------```xml
```
Update Speed From Java
-------------```
DigitSpeedView digitSpeedView = (DigitSpeedView)findViewById(R.id.digit_speed_view);
digitSpeedView.updateSpeed(120);
```OnSpeedChangeListener
-------------```
DigitSpeedView digitSpeedView = (DigitSpeedView)findViewById(R.id.digit_speed_view);
digitSpeedView.setOnSpeedChangeListener(new OnSpeedChangeListener() {
@Override
public void onSpeedChange(DigitSpeedView digitSpeedView, boolean isSpeedUp) {
//Current speed: digitSpeedView.getSpeed();
}
});
```License
-------Copyright 2017 Riccardo Capuani
Licensed 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
http://www.apache.org/licenses/LICENSE-2.0
Unless 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.