An indicator bar view for Android
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
indicatorviewbar-android-library
indicatorviewbar-android-sample
screenshots
.gitignore
LICENSE.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

IndicatorBarView-Android

Still DEVELOPING! The API MAY be changed frequently.

The IndicatorBarView-Android displays value on the pin with corresponding location on the bar.

Screenshot

The example project is in indicatorviewbar-android-sample/ directory

Example code

The indicator bar with minimum and maximum values.

<tw.fmbase.app.indicatorviewbar_android.IndicatorBar
    android:id="@+id/indicator_bar"
    android:layout_width="match_parent"
    android:layout_height="100dp"
    indicatorbar:minValue="0"
    indicatorbar:maxValue="100"
    indicatorbar:value="55"
    indicatorbar:barHeight="10dp">

The indicator bar with multiple colors.

<tw.fmbase.app.indicatorviewbar_android.IndicatorBar
    android:id="@+id/indicator_bar"
    android:layout_width="match_parent"
    android:layout_height="100dp"
    indicatorbar:minValue="0"
    indicatorbar:maxValue="100"
    indicatorbar:value="55"
    indicatorbar:barHeight="10dp"
    indicatorbar:isMultipleLevelColors="true"/>

TODO

  • Implement onMeasure() in IndicatorBar view class
  • Performance: Pass certain area when invoking invalidate() in IndicatorBar view
  • Configure the text font on pin
  • API document
  • Publish on jCenter
  • Add unit testing with Travis CI