Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set editable property of rating bar to false

Tags:

android

How should I set the editable property of rating bar to false? I tried the following but it doesn't work:

holder.rb=(RatingBar)convertView.findViewById(R.id.ratingBar1);
holder.rb.setActivated(false);
like image 816
Avais Shaikh Avatar asked Feb 09 '15 10:02

Avais Shaikh


People also ask

How do I change the rating bar on my Android?

You can create custom material rating bar by defining drawable xml using material icon of your choice and then applying custom drawable to rating bar using progressDrawable attribute. Below drawable xml uses thumbs up icon for rating bar.

How to use rating bar in android studio?

A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars. The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar. The smaller RatingBar style ( R. attr.

How do you change the color of a star in a rating bar?

First, change progress color of rating bar. Its done by two ways, either by applying theme on RatingBar or by manually using LayerDrawable. That's it. android:stepSize="0.5" />LayerDrawable stars = (LayerDrawable) rating.


1 Answers

To disactivate view use :

holder.rb=(RatingBar)convertView.findViewById(R.id.ratingBar1); 
holder.rb.setEnable(false)
like image 167
KOTIOS Avatar answered Oct 15 '22 10:10

KOTIOS