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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -