[英]Rating Bar view only on android
I'm trying to create an android application where one of the activities has a rating bar. 我正在尝试创建一个Android应用程序,其中一个活动有一个评级栏。 Is there a way to make a Rating Bar a view only so that the user will not be able to modify it?
有没有办法让评级栏只是一个视图,以便用户无法修改它?
Yes, just call setIsIndicator(true) 是的,只需调用setIsIndicator(true)
http://developer.android.com/reference/android/widget/RatingBar.html#setIsIndicator(boolean) http://developer.android.com/reference/android/widget/RatingBar.html#setIsIndicator(boolean)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.