坐落在Android版的RatingBar所示的星数的下限 [英] Set lower limit of number of stars shown in RatingBar Android
本文介绍了坐落在Android版的RatingBar所示的星数的下限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Android中你可以设置数星星成为展会的RatingBar小部件,但有对明星始终有效数设定下限的方式。作为一个例子评级电影或东西,你不能提交等级1?
With the RatingBar widget in android you can set the number of stars to be show, but is there a way of setting a lower limit on the number of stars that are always active. As an example rating a film or something where you cannot submit a rating of 1?
推荐答案
如果这不是框架strictyl来讲可能的,你可以把1默认值与的android:评分
设置为1,并在添加一个侦听器的的RatingBar
当用户试图去降低回去1没有?
If this is not possible in the framework strictyl speaking, you could put a default value of 1 with android:rating
set to 1, and the add a listener on the RatingBar
to go back to 1 when the user tries to go lower no?
这篇关于坐落在Android版的RatingBar所示的星数的下限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文