Hello,
In the newer versions of TalkBack there is for Ratingbars the option "seek control" available in the "Local Content menu".
If I use the option "seek control" the following code get timende have way throw.
Can Someone help me to update this code so that it works even if using a newer version of TalkBack?
View v = inflater.inflate (R.layout.fragment_rating_bar, container, false);
final RatingBar ratingbar = (RatingBar) v.findViewById(R.id.ratingBar2);
ratingbar.setContentDescription (ratingbar.getRating () +
"ort of " + ratingbar.getNumStars () + "Stars") ;
ratingbar.setOnRatingBarChangeListener(new RatingBar.OnRatingBarChangeListener() {
@Override
public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser) {
ratingbar.setContentDescription(rating + " out of " +
ratingbar.getNumStars() + " Stars");
}
});
return v;
}
Best Regards
Petra Riter