Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.12 KB

README.md

File metadata and controls

46 lines (40 loc) · 1.12 KB

animated-ratingbar

license jitpack

AnimatedRatingBar Video

##Include your project add build.gradle

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
dependencies {
    compile 'com.github.bigstark:animated-ratingbar:0.3.0'
}

Usage

<com.bigstark.animatedratingbar.lib.AnimatedRatingBar
        android:id="@+id/arb"
        android:layout_width="wrap_content"
        android:layout_height="30dp"
        android:layout_marginTop="100dp"
        app:gapSize="10dp"
        app:progressImage="@mipmap/icon_progress"
        app:secondaryProgressImage="@mipmap/icon_secondary"
        app:max="5"
        app:numStars="5"
        app:rating="4.6"
        />
        arb = (AnimatedRatingBar) findViewById(R.id.arb);
        arb.setRating(4.3f);
        arb.setNumStars(5);
        arb.startAnimate();