[Solved] How to make a RecyclerView with a ratngBar inside it so the the user can rate the RecylerView items

You need to use add the OnRatingBarChangeListener to handle the OnRatingBarChanged event. Add the necesary code to the onBindViewHolder method: @Override public void onBindViewHolder(@NonNull FoodViewHolder foodViewHolder, int i) { FoodItem currentItem = arrayList.get(i); foodViewHolder.viewHolderImageView.setImageResource(currentItem.getFoodImage()); foodViewHolder.viewHolderTextView.setText(currentItem.getFoodName()); foodViewHolder.viewHolderRatigBar.setRating(currentItem.getFoodRating()); foodViewHolder.viewHolderRatigBar.setOnRatingBarChangeListener(new RatingBar.OnRatingBarChangeListener(){ @Override public void onRatingBarChanged(RatingBar ratingBar, float rating, boolean fromUser){ currentItem.setFoodRating(rating); } } } NOTE: The value “rating” … Read more