A simple canvas based rating bar. Simple and ALLEGIANT in look.
CanvasRatingBar is published with Bintray - Maven Repository. To add this library to your project, add these lines to your build.gradle (Top-level build file)
repositories {
jcenter()
maven {
url 'https://dl.bintray.com/angtwr31/maven';
}
}
and add these lines to your build.gradle (App-level build file)
dependencies {
compile 'com.angtwr31.library:canvasratingbar:0.0.1'
}
<com.angtwr31.library.CanvasRatingBar
android:id="@+id/ratingbar"
android:layout_width="wrap_content"
android:layout_height="30dp"
app:maxStars="5"
app:ratingValue="0.0"
app:halfStarEnable="true"
app:fillColor="@android:color/holo_red_light"/>
maxStars is the Integer value of the max rating stars
ratingValue is the default value set for rating stars
halfStarEnable == true enable the half rating
if any issue found in this library .. you can open the issues on this github repository
althought the library is still underprogress
i'm working on some minor fixes