I have a ListView that uses different XML files to create Views and make items out of. One of these XML files contains a RatingBar. Everything displays and looks excellent
ratingBar1.setOnRatingBarChangeListener(new OnRatingBarChangeListener() { @Override public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) { String rateValue = String.valueOf(ratingbar1.getRating()); System.out.println("Rate for Module is"+rateValue); } });