Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RatingBar ratingBar = (RatingBar) findViewById(R.id.rating_bar);
- ratingBar.setEnabled(false);
- ratingBar.setRating(4);
- <RatingBar
- android:id="@+id/rating_bar"
- android:saveEnabled="false"
- android:isIndicator="true"
- android:rating="0"
- style="?android:attr/ratingBarStyle"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"/>
- ratingBar.setEnabled(false);
Add Comment
Please, Sign In to add comment