Velocimeter

Additional

Language
Java
Version
N/A
Created
Jun 9, 2015
Updated
Aug 3, 2016 (Retired)
Owner
Adrián Lomas (glomadrian)
Contributor
Adrián Lomas (glomadrian)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

Velocimeter

A velocimeter View for Android

Sample video:

Youtube Velocimeter video

Sample app:

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.