All Projects → giswangsj → Andratingbar

giswangsj / Andratingbar

Licence: apache-2.0
A RatingBar library for android, you can customize size ,color ,spacing and image easily!Support right to left。效果可以参看:https://juejin.im/post/6844904143220391949

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Andratingbar

Laravel Reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Stars: ✭ 58 (-90.03%)
Mutual labels:  star, rating
Rateit.js
Rating plugin for jQuery. Fast, Progressive enhancement, touch support, icon-font support, highly customizable, unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, supports as many stars as you'd like, and also any step size.
Stars: ✭ 146 (-74.91%)
Mutual labels:  star, rating
Mgstarratingview
MGStarRatingView is a view for rating.
Stars: ✭ 70 (-87.97%)
Mutual labels:  star, rating
Awesomstar
Awesome (star)rating system with PHP, MySQL and pure JavaScript.
Stars: ✭ 15 (-97.42%)
Mutual labels:  star, rating
Giotto
Theme manager for your app: apply styles to anything you want through a plist file
Stars: ✭ 18 (-96.91%)
Mutual labels:  color, size
Bootstrap Star Rating
A simple yet powerful JQuery star rating plugin with fractional rating support.
Stars: ✭ 985 (+69.24%)
Mutual labels:  star, rating
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-81.1%)
Mutual labels:  star, rating
Starrate
swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作
Stars: ✭ 85 (-85.4%)
Mutual labels:  star, rating
rater-js
Star rating widget for the browser. Unlimited number of stars. No dependencies. No Jquery required.
Stars: ✭ 66 (-88.66%)
Mutual labels:  rating, star
Iconhandler
Tint you Icons, change the size, apply alpha color and set a position easily. 👓
Stars: ✭ 59 (-89.86%)
Mutual labels:  size, color
Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (+41.24%)
Mutual labels:  star, rating
react-star-ratings
A customizable svg star rating component for selecting x stars or visualizing x stars
Stars: ✭ 128 (-78.01%)
Mutual labels:  rating, star
React Native Star Rating
A React Native component for generating and displaying interactive star ratings
Stars: ✭ 724 (+24.4%)
Mutual labels:  star, rating
Yii2 Widget Rating
A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)
Stars: ✭ 47 (-91.92%)
Mutual labels:  star, rating
Raty
🌟 Raty - A Star Rating Plugin
Stars: ✭ 2,292 (+293.81%)
Mutual labels:  star, rating
ColorRatingBar
change color of star in rating bar
Stars: ✭ 23 (-96.05%)
Mutual labels:  color, rating
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (-25.43%)
Mutual labels:  customizable, color
Fast Average Color
🍏🍊🍅 Fast Average Color
Stars: ✭ 531 (-8.76%)
Mutual labels:  color
Cup Size
👀 关于女性文胸尺码的深入探讨
Stars: ✭ 550 (-5.5%)
Mutual labels:  size
Jquery.sumoselect
A jQuery Single/Multi Select plugin which can be used on almost any device
Stars: ✭ 527 (-9.45%)
Mutual labels:  customizable

AndRatingBar

API

A RatingBar library for android, you can customize size, spacing, color and image easily, and support right to left.
安卓RatingBar终极方案,继承自原生RatingBar,具有原生的滑动选择等特性,并且可以自定义大小,间距,颜色,图标,支持从右当左

Customize Size

Size Sample

Customize Spacing

Spacing Sample

Customize Color & Image

Style Sample

Right to Left Support

right to left

In RecyclerView

List Sample

Implementation

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

dependencies {
	implementation 'com.github.giswangsj:AndRatingBar:1.0.5'
}

Usage

In your layout file:

<per.wsj.library.AndRatingBar
        android:layout_width="wrap_content"
        android:layout_height="48dp"
        app:starDrawable="@drawable/star_blue"
        app:bgDrawable="@drawable/star_gray"
        android:rating="2.5"/>

Event Listener

ratingBar.setOnRatingChangeListener { ratingBar, rating ->
   Log.e("ratingBar", "rating:$rating")
}

Configuration

AndRatingBar Inherit from Android RatingBar,so all the configuration of RatingBar can be
configured to AndRatingBar,for example:

  • android:rating="1" set the rating of RatingBar
  • android:numStars="8" set the number of star
  • android:layout_height="36dp" set the size of star
  • android:stepSize="0.5" set the step size of RatingBar
  • android:isIndicator="true" set if as indicator

AndRatingBar has it's own configuration as follows:

  • app:starDrawable="" set the drawable of star
  • app:bgDrawable="" set the background drawable of star
  • app:starColor="" set the color of star
  • app:subStarColor="" set the subColor of star
  • app:bgColor="" set the background color of star
  • app:keepOriginColor="" set if keep the origin color of star drawable
  • app:starSpacing="4dp" set the spacing of the star
  • app:scaleFactor="1.2" the sacle factor of the ratingbar which can change the spacing of the star
  • app:right2Left="true" right to left support

License

AndRatingBar is released under the Apache License version 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].