Description
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
Smiley Rating alternatives and similar packages
Based on the "UI Widget" category.
Alternatively, view Smiley Rating alternatives based on common mentions on social networks and blogs.
-
EffectiveAndroidUI
Sample project created to show some of the best Android practices to work in the Android UI Layer. The UI layer of this project has been implemented using MVP or MVVM (without binding engine) to show how this patterns works. This project is used during the talk "EffectiveAndroidUI". -
ShowcaseView
DISCONTINUED. Highlight the best bits of your app to users quickly, simply, and cool...ly -
GreenDroid
GreenDroid is a development library for the Android platform. It makes UI developments easier and consistent through your applications. -
FancyToast-Android
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code. -
ParallaxEverywhere
Parallax everywhere is a library with alternative android widgets with parallax effects. -
FancyAlertDialog-Android
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code. -
MaterialBanner
A library that provides an implementation of the banner widget from the Material design. -
Custom-Calendar-View
DISCONTINUED. The CustomCalendarView provides an easy and customizable calendar to create a Calendar. It dispaly the days of a month in a grid layout and allows to navigate between months -
Aesthetic GraphView
This is a custom graph library where you can customize the graph as you want. The key features are you can take the full control over drawing the path, change the gradient color (Start Color - End Color), Change the circle color, Change the circle radius, Change the path color, Change the line thickness, On/Off Gridlines, Change the grid line color, On/Off Graduations, Change the graduation text color, Draw graph with different starting point, Draw graph from the left border (X0 - coordinate), Draw graph with exact coordinates given, Draw graph from left border and stretch until the end of the screen and it is Supported on OS - JellyBean 4.1 and above -
FingerSignView
A simple library to let you sign (or draw lines) smoothly with your finger into a view and save it. -
Horizontal Calendar View
A simple library to display a horizontal calendar with custom start and end date, and mark events with a background
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Smiley Rating or a related project?
README
Smiley Rating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
- Drawn completely using android canvas
- Inspired by Bill Labus
Demo
Integration
Integrating SmileyRating in your project is very simple.
Step 1:
Add this dependency in your project's build.gradle file which is in your app folder
compile 'com.github.sujithkanna:smileyrating:2.0.0'
add this to your dependencies.
Step 2:
Now place the SmileyRating in your layout.
<com.hsalf.smileyrating.SmileyRating
android:id="@+id/smile_rating"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
Set this SmileySelectedListener to get notified when user selects a smiley
By default the selected smiley will be NONE
smileyRating.setSmileySelectedListener(new SmileyRating.OnSmileySelectedListener() {
@Override
public void onSmileySelected(SmileyRating.Type type) {
// You can compare it with rating Type
if (SmileyRating.Type.GREAT == type) {
Log.i(TAG, "Wow, the user gave high rating");
}
// You can get the user rating too
// rating will between 1 to 5
int rating = type.getRating();
}
});
Get current selection
SmileyRating.Type smiley = smileyRating.getSelectedSmiley();
// You can compare it with rating Type
if (SmileyRating.Type.GREAT == type) {
Log.i(TAG, "Great rating is given");
}
// You can get the user rating too
// rating will between 1 to 5, but -1 is none selected
int rating = type.getRating();
You can set selected smiley without user interaction
Without animation
smileRating.setRating(SmileyRating.Type.GREAT);
// Or you can give rating as number
// Valid inputs are 1 to 5.
// Giving -1 will reset the rating. Equivalent to Type.NONE
smileRating.setRating(5);
OR
smileRating.setRating(SmileyRating.Type.GREAT, false);
smileRating.setRating(5, false);
The smiley will be selected with animation and the listeners will be triggered
With animation
smileRating.setRating(SmileyRating.Type.GREAT, true);
smileRating.setRating(5, true);
Smiley will be selected with animation and listeners will also be triggered(Only if the second param is true)
Disallow selection
smileRating.disallowSelection(true);
You can disallow user input by passing true to this. You can set the smiley only using this. This is useful when you just want to show the rating.
Styling
smileRating.setTitle(SmileyRating.Type.GREAT, "Awesome");
smileRating.setFaceColor(SmileyRating.Type.GREAT, Color.BLUE);
smileRating.setFaceBackgroundColor(SmileyRating.Type.GREAT, Color.RED);
These are the helper methods to change the color and title of the Smiley.
NOTE: The color values must be int colors Color.RED
or Color.parse("#fff")
or ResourcesCompat.getColor(getResources(), R.color.your_color, null);
, not int resources like R.color.primaryColor
.
(Currently setting these things in xml will make things complex. So any pull request for this will not be accepted)
Working with RecyclerView
To avoid conflict with RecyclerView touch events, you have to add the following implementation when putting the SmileyRating in RecyclerView. For that you have to create an instance of SmileyActivityIndicator as global variable inside your Activity where you use your RecyclerView.
final SmileyActiveIndicator smileyActiveIndicator = new SmileyActiveIndicator();
Now you have to link the SmileyActiveIndicator
to the RecyclerView. This will tell the RecyclerView whether it can scroll or not.
recyclerView.setLayoutManager(new LinearLayoutManager(this) {
@Override
public boolean canScrollVertically() {
return !smileyActiveIndicator.isActive();
}
});
Now bind your SmileyRating view to the mSmileyActiveIndicator
you have created.
@Override
public void onBindViewHolder(@NonNull Holder holder, final int position) {
SmileyRating rating = holder.smileyRating;
mSmileyActiveIndicator.bind(rating);
// your code here
}