Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

SimpleRatingBar

> 编程语言
Open source

A simple RatingBar that you can easier to customize image and animations

1.4K stars0 likes0 views
WebsiteGitHub

About

A simple RatingBar that you can easier to customize image and animations

SimpleRatingBar

The simplest RatingBar library, create your own animate RatingBar in a few steps!

Provide three RatingBars at the moment:

  • BaseRatingBar
    A RatingBar without any animation.
  • ScaleRatingBar
    A RatingBar with progressive and scale animation.
  • RotationRatingBar (contributed by nappannda)
    A RatingBar with progressive and rotate animation.

What's Next?

  • Release the Kotlin version of the library!
  • Feel free to post any suggestions you would like to improve!

Demo

Icon made by Freepik from www.flaticon.com

What's New (v1.5.1)

  • Fixed stepSize bug (#91)
  • Fixed the match parent issue(start didn't consume the whole width)

Feature

  • Allow half star through click event. (contributed by ANPez)
  • Support step size setting(range from 0.1 to 1.0).
  • Support float rating
    • Now you can set a float rating like 3.5, 2.3, 4.7, etc., but you only need to provide two images: filled and empty, and Library will auto processes your images to support float showing!
  • Stars width and height setting. (contributed by zhangruize)
  • Support use touch to change rating
  • Custom drawable's padding
  • Custom your empty and filled drawable
  • Click again to clear rating
  • IsIndicator, Scrollable, Touchable and Clickable settings
  • Rotate animation
  • Scale animation

How To Use

Install

from JitPack:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    compile 'com.github.ome450901:SimpleRatingBar:LATEST_VERSION'
}

In Xml

…

In Your Code

…

Want to Implement Your Own Animation?

Only TWO STEPS you need to do:

  • Create a class that extend BaseRatingBar
  • Override the emptyRatingBar and fillRatingBar this two method, and then you can start implement your own animaion!

You can follow ScaleRatingBar to implement your own class.

Todo

  • Implement some other animations
  • Find a better way to implement animation

About Me

Follow me at Medium.

License

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidanimateanimationrating

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言