Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.