android RatingBar touch move changed listener -
i can't catch event when ratingbar stars change.
used setonratingbarchangelistener
, in case catch rate of ratingbar
on action_up
.
i want make so:
when rate==1 star's color color1,
when rate==2 stars' color color2,
when rate==3 stars' color color3,
when rate==4 stars' color color4,
when rate==5 stars' color color5.
it should change, when touch action_move
.
in rating bar can directly find no of rating listener in rating string can no of rating.
ratingbar.setonratingbarchangelistener(new onratingbarchangelistener() { public void onratingchanged(ratingbar ratingbar, float rating, boolean fromuser) { ratings = string.valueof(rating); } });