We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I set rating to 6, MaterialRatingBar does not raise OnRatingChangeListener!!
<me.zhanghai.android.materialratingbar.MaterialRatingBar android:id="@+id/ratingBar" android:layout_width="260dp" android:layout_height="24dp" android:numStars="10" android:rating="6" android:stepSize="1" />
MaterialRatingBar ratingBar = (MaterialRatingBar) findViewById(R.id.ratingBar); ratingBar.setOnRatingChangeListener(new MaterialRatingBar.OnRatingChangeListener() { @Override public void onRatingChanged(MaterialRatingBar ratingBar, float rating) { Log.d("Test", String.format(Locale.US, "Rating: %f", rating)); } }); ratingBar.setRating(6);
The text was updated successfully, but these errors were encountered:
This is working as intended, the same as framework ProgressBar -- Setting the same value again won't trigger listeners, as setRating() will call setProgressInternal() which simply returns after the check.
ProgressBar
setRating()
setProgressInternal()
Sorry, something went wrong.
zhanghai
No branches or pull requests
When I set rating to 6, MaterialRatingBar does not raise OnRatingChangeListener!!
The text was updated successfully, but these errors were encountered: