All Projects → Inconnu08 → Android Ratingreviews

Inconnu08 / Android Ratingreviews

Licence: apache-2.0
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Ratingreviews

Aachartkit Swift
📈📊📱💻🖥️An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、…
Stars: ✭ 1,962 (+1683.64%)
Mutual labels:  graph, view, chart
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+1501.82%)
Mutual labels:  android-studio, android-development, chart
Beefun Pro
Github client for iOS in Swift.
Stars: ✭ 172 (+56.36%)
Mutual labels:  open-source, app, star
Alerter
An Android Alerting Library
Stars: ✭ 5,213 (+4639.09%)
Mutual labels:  google, app, android-development
Flutter Music Player
Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.
Stars: ✭ 1,215 (+1004.55%)
Mutual labels:  playstore, open-source
Livechart
Android library to draw beautiful and rich line charts.
Stars: ✭ 78 (-29.09%)
Mutual labels:  jitpack, android-development
Starrate
swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作
Stars: ✭ 85 (-22.73%)
Mutual labels:  star, rating
Androidtraining
Training course repository for android app development
Stars: ✭ 1,295 (+1077.27%)
Mutual labels:  android-studio, android-development
Materialchipview
Material Chip view. Can be used as tags for categories, contacts or creating text clouds
Stars: ✭ 1,181 (+973.64%)
Mutual labels:  android-development, view
Diffract
A set of d3 based visualization components built for React
Stars: ✭ 87 (-20.91%)
Mutual labels:  graph, chart
C3
📊 A D3-based reusable chart library
Stars: ✭ 9,163 (+8230%)
Mutual labels:  graph, chart
Android Kotlin Chat App
Open-source Voice & Video Calling and Text Chat App for Kotlin (Android)
Stars: ✭ 76 (-30.91%)
Mutual labels:  open-source, app
Trustgraph
Decentralized trust ratings using signed claims
Stars: ✭ 75 (-31.82%)
Mutual labels:  graph, rating
Bitcoin Scraper
💲 bitcoin chart history scraper
Stars: ✭ 80 (-27.27%)
Mutual labels:  graph, chart
Debug Badge
Add badge(version code, version name, etc) for your DEBUG APK.
Stars: ✭ 75 (-31.82%)
Mutual labels:  android-studio, android-development
Aurdroid
Android AUR [Arch Linux user Repository] packages browser
Stars: ✭ 88 (-20%)
Mutual labels:  open-source, android-development
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-4.55%)
Mutual labels:  android-studio, android-development
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (-11.82%)
Mutual labels:  graph, chart
Clj Xchart
XChart wrapper for Clojure
Stars: ✭ 105 (-4.55%)
Mutual labels:  graph, chart
Py Ascii Graph
A simple python lib to print data as ascii histograms
Stars: ✭ 107 (-2.73%)
Mutual labels:  graph, chart

RatingReviews


Android Arsenal

RatingReviews (Rating and Reviews) is a widget and layout that adds a "Rating & Reviews" bar to your app, similar to the ones seen on Google Play Store and Apple App Store. It provides a beautiful visual summary of the number of raters along with the ratings they gave on a specific item. Of course, it is also highly customizable to fit your app themes! ⭐🌟✨

Screenshots

playstore (style1) appstore (style2) playstore (new rounded) customized (style2)
gradient (rounded) gradient playstore (old)

All of these samples can be found in app

You can also:

  • Take an existing style and customise it to be your desired style.
  • Add gradient colors to the bar and add an array of pairs to the colors parameter in your code. See the sample for more details.

Installation

Make sure your project is migrated to AndroidX.

In your root build.gradle at the end of repositories:

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

In your app build.gradle:

implementation 'com.github.Inconnu08:android-ratingreviews:1.2.0'

Usage

Using RatingReviews is simple. Here is an example:

java

        RatingReviews ratingReviews = (RatingReviews) findViewById(R.id.rating_reviews);

        int colors[] = new int[]{
                Color.parseColor("#0e9d58"),
                Color.parseColor("#bfd047"),
                Color.parseColor("#ffc105"),
                Color.parseColor("#ef7e14"),
                Color.parseColor("#d36259")};

        int raters[] = new int[]{
                new Random().nextInt(100),
                new Random().nextInt(100),
                new Random().nextInt(100),
                new Random().nextInt(100),
                new Random().nextInt(100)
        };

        ratingReviews.createRatingBars(100, BarLabels.STYPE1, colors, raters);

xml

    <com.taufiqrahman.reviewratings.RatingReviews
        xmlns:bar="http://schemas.android.com/apk/res-auto"
        android:id="@+id/rating_reviews"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="42dp"
        android:layout_marginTop="8dp"
        android:layout_marginBottom="8dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toEndOf="@+id/textView"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.499"
        bar:animation="true"
        bar:max_value="100"
        bar:show_label="true"
        bar:spaces="0dp"
        bar:text_color="#333333"
        bar:text_size="10sp"
        bar:width="15dp" />

Specification

The table below shows the parameters and the attributes for furthur customization:

Attribute Description Options (examples)
animation of the bars from left to right true, false
show_label of the bars for example: 1, 2, 3, 4, 5 STYPE1, STYPE2, STYPE3, STYPE4
max_value max value for the ratings 100 etc
text_color color of the texts for example the labels color int
text_size text size of labels 10sp, 12sp etc
width bar width 8dp, 15dp etc
spaces space between bars 1sp, 2dp etc
rounded round corners of bars true, false

Contribution

Want to contribute? Fantastic!

If you want to contribute to the project and make it better (whether it's a bug fix, feature, improvement, suggestion, documentation or any sort of help), your help is very welcomed! ❤

Todos

  • Optimization

Check issues

Motivation

There was no visual 5 star rating system when I needed it for a project. Special thanks to the chart libraries where I took some inspiration from.

License

   Copyright (C) 2019 Taufiq Rahman
   Copyright (C) 2018 Android Open Source Project

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Built with ❤︎ by Taufiq Rahman and contributors
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].