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);
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.
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.
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.
To disactivate view use :
holder.rb=(RatingBar)convertView.findViewById(R.id.ratingBar1);
holder.rb.setEnable(false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With