Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个ratingbar,它最初显示了用户输入的平均评分,以及我的问题是,额定栏忽略其默认值(或平均值)时。我将如何解决这个问题?
你可以检查
if(ratingBar.getRating() == AVERAGE_RATING && ratingBar.getRating() == DEFAULT_VALUE) { // ignore } else { // Go on.. }