All Projects → capur16 → Digitspeedview

capur16 / Digitspeedview

Licence: apache-2.0
Awesome digital speedometer library for android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Digitspeedview

Photoviewslider
📷 A simple photo browser for Android applications.
Stars: ✭ 78 (-6.02%)
Mutual labels:  library
Before after slider
before after slider
Stars: ✭ 80 (-3.61%)
Mutual labels:  library
Litiv
C++ implementation pool for computer vision R&D projects.
Stars: ✭ 82 (-1.2%)
Mutual labels:  library
Vokaturiandroid
Emotion recognition by speech in android.
Stars: ✭ 79 (-4.82%)
Mutual labels:  library
Byline
Go library for convert io.Reader to line-by-line Reader
Stars: ✭ 80 (-3.61%)
Mutual labels:  library
Liblognorm
a fast samples-based log normalization library
Stars: ✭ 81 (-2.41%)
Mutual labels:  library
Gitlink
Git integration for the Wolfram Language
Stars: ✭ 77 (-7.23%)
Mutual labels:  library
Faustlibraries
The Faust libraries
Stars: ✭ 83 (+0%)
Mutual labels:  library
Wymaterialbutton
Interactive and fully animated Material Design button for iOS developers.
Stars: ✭ 80 (-3.61%)
Mutual labels:  library
Panwid
A collection of widgets for urwid.
Stars: ✭ 82 (-1.2%)
Mutual labels:  library
Kotlin Futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like.
Stars: ✭ 79 (-4.82%)
Mutual labels:  library
Discrollview2
[DEPRECATED]Android Library for fancy layouts
Stars: ✭ 79 (-4.82%)
Mutual labels:  library
Sonwan Ui
SonWan UI is a modular UI component library based on figma design to build your next React Web Application.
Stars: ✭ 75 (-9.64%)
Mutual labels:  library
Libgui
Buttons & Co
Stars: ✭ 78 (-6.02%)
Mutual labels:  library
Shiftregister74hc595
Arduino library that simplifies the usage of shift registers
Stars: ✭ 82 (-1.2%)
Mutual labels:  library
Graphql client
GraphQL Client.
Stars: ✭ 78 (-6.02%)
Mutual labels:  library
Bitcoin Cryptography Library
Nayuki's implementation of cryptographic primitives used in Bitcoin.
Stars: ✭ 81 (-2.41%)
Mutual labels:  library
Paris
TypeScript library for implementing Domain-Driven Design in web apps
Stars: ✭ 83 (+0%)
Mutual labels:  library
Internettools
XPath/XQuery 3.1 interpreter for Pascal with compatibility modes for XPath 2.0/XQuery 1.0/3.0, custom and JSONiq extensions, XML/HTML parsers and classes for HTTP/S requests
Stars: ✭ 82 (-1.2%)
Mutual labels:  library
Neumorphic Ui
📚 A library of components based on the concept of neumorphism
Stars: ✭ 82 (-1.2%)
Mutual labels:  library

DigitSpeedView

API Download Android Arsenal

Awesome digital speedometer for android, see project on GitHub.

Compatibility

This library is compatible from API 14 (Android 4.0).

Download

add this line to build.gradle

dependencies {
	    compile 'com.github.capur16:digitspeedviewlib:1.0.3'
}

for maven

<dependency>
  <groupId>com.github.capur16</groupId>
  <artifactId>digitspeedviewlib</artifactId>
  <version>1.0.3</version>
  <type>pom</type>
</dependency>

Simple Usage

add DigitSpeedView to your Layout.xml.

<com.github.capur16.digitspeedviewlib.DigitSpeedView
            android:id="@+id/digit_speed_view"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:speed="16" />

Advanced Usage

<com.github.capur16.digitspeedviewlib.DigitSpeedView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:backgroundColor="@color/my_background_color"
                app:disableBackgroundImage="false"
                app:showUnit="true"
                app:backgroundDrawable="@drawable/my_background_image"
                app:speed="30"
                app:speedTextColor="@android:color/holo_blue_light"
                app:speedTextSize="20dp"
                app:unit="mph"
                app:unitTextColor="@android:color/holo_blue_light"
                app:unitTextSize="5dp" />

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].