android - how to set value to rating bar with string -


i number database string. want set number (for example 3 or 4) rating bar. says rating bar accepts float variables.

what should do?

you need parse string float.you can this->

float rating = float.parsefloat(string); ratingbar.setrating(rating); 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -