Skip to content
A velocimeter View for Android
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
art
gradle/wrapper
velocimeterlibrary Remove unused attr Jun 9, 2015
.gitignore
.travis.yml
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

Velocimeter

Build Status Android Arsenal Download

A velocimeter View for Android

Demo Screenshot

Demo Screenshot

Sample video:

Youtube Velocimeter video

Sample app:

Get it on Google Play

How to use

Default colors

<com.github.glomadrian.velocimeterlibrary.VelocimeterView
       android:layout_gravity="center"
       android:id="@+id/velocimeter"
       android:layout_width="250dp"
       android:layout_height="250dp"
       />

With custom colors and attributes

<com.github.glomadrian.velocimeterlibrary.VelocimeterView
        android:layout_gravity="center"
        android:id="@+id/velocimeter"
        android:layout_width="250dp"
        android:layout_height="250dp"
        app:inside_progress_color="@color/inside_progress"
        app:external_progress_color="@color/external_progress"
        app:progress_blur_color="@color/external_progress"
        app:bottom_velocimeter_color="@color/bottom_velocimeter"
        app:internal_velocimeter_color="@color/internal_velocimeter"
        app:needle_color="@color/needle"
        app:needle_blur_color="@color/needle"
        app:digital_number_color="@color/digital_number"
        app:digital_number_blur_color="@color/digital_number"
        app:show_bottom_bar="false"
        app:max="100"
        app:units="kmh"
        />

Remember put this for custom attribute usage

xmlns:app="http://schemas.android.com/apk/res-auto"

For Gradle

Add repository

repositories {
  maven {
    url "http://dl.bintray.com/glomadrian/maven"
  }
}

Add dependency

compile 'com.github.glomadrian:velocimeterlibrary:1.1@aar'

Developed By

Adrián García Lomas - glomadrian@gmail.com

License

Copyright 2015 Adrián García Lomas

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.
You can’t perform that action at this time.