Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rating Bar view only on android

I'm trying to create an android application where one of the activities has a rating bar. Is there a way to make a Rating Bar a view only so that the user will not be able to modify it?

like image 938
itzick binder Avatar asked Oct 18 '14 14:10

itzick binder


People also ask

How do I change the rating bar on my Android?

Custom Rating Bar in Android Copy your images in the drawable folder and remember image size should be according to the size you want. Step 2. Make XML for the rating bar selector in the drawable folder like below. We made two files, one for the fill or highlighted part and one for the empty or un-highlighted part.

What is rating bar in Android?

Rating bar is a subclass of absSeekbar class in android. It is used to show the rating on view Group or window manager. This example demonstrates how to use the rating bar in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.

How do I turn off rating bars?

android:attr/ratingBarStyleSmall" or scaleX/scaleY the click interaction with RatingBar is disabled. This works for me. Hope this helps you!


1 Answers

Yes, just call setIsIndicator(true)

http://developer.android.com/reference/android/widget/RatingBar.html#setIsIndicator(boolean)

like image 79
Felipe Silveira Avatar answered Sep 17 '22 00:09

Felipe Silveira