Best code examples for Android RatingBar class (android.widget.RatingBar)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android RatingBar class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android RatingBar examples from Open Source projects
This code example shows how to use the following methods: setLayoutParams, setTag, setNumStars, setOnRatingBarChangeListener, setRating
51:	RatingBar rate=new RatingBar(ctxt); 
-
53:	rate.setNumStars(3); 
54:	rate.setStepSize(1.0f); 
-
60:	rate.setLayoutParams(new LinearLayout.LayoutParams( 
-
76:	rate.setOnRatingBarChangeListener(l); 
-
85:	rate.setTag(new Integer(position)); 
86:	rate.setRating(rates[position]); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setLayoutParams, setNumStars, setRating
33:	RatingBar rb = new RatingBar(this,null,android.R.attr.ratingBarStyleSmall); 
34:	rb.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); 
35:	rb.setNumStars(5); 
36:	rb.setRating(rating); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setNumStars, setOnRatingBarChangeListener, setRating, setStepSize
68:	final RatingBar popupRatingBar = new RatingBar(context); 
69:	popupRatingBar.setNumStars(mRatingBar.getNumStars()); 
70:	popupRatingBar.setStepSize(mRatingBar.getStepSize()); 
71:	popupRatingBar.setRating(mRatingBar.getRating()); 
72:	popupRatingBar.setOnRatingBarChangeListener(this); 
-
74:	final AlertDialog dialog = new AlertDialog.Builder(context).setView(popupRatingBar) 
-
76:	popupRatingBar.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setNumStars, setRating
47:	RatingBar rb = new RatingBar(this,null,android.R.attr.ratingBarStyleSmall); 
48:	rb.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); 
49:	rb.setNumStars(5); 
50:	rb.setRating(rating); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setNumStars, setRating
45:	RatingBar rb = new RatingBar(this,null,android.R.attr.ratingBarStyleSmall); 
46:	rb.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); 
47:	rb.setNumStars(5); 
48:	rb.setRating(rating); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setNumStars, setRating, setStepSize
52:	this.mPoints.setNumStars(5); 
53:	this.mPoints.setStepSize((float)0.5); 
-
55:	this.mPoints.setRating(stars); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setNumStars, setRating
47:	RatingBar rb = new RatingBar(this,null,android.R.attr.ratingBarStyleSmall); 
48:	rb.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT)); 
49:	rb.setNumStars(5); 
50:	rb.setRating(rating); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setTag, setNumStars, setOnRatingBarChangeListener, setRating
39:	RatingBar rate=new RatingBar(ctxt); 
-
41:	rate.setNumStars(3); 
42:	rate.setStepSize(1.0f); 
-
48:	rate.setLayoutParams(new LinearLayout.LayoutParams( 
-
64:	rate.setOnRatingBarChangeListener(l); 
-
73:	rate.setTag(new Integer(position)); 
74:	rate.setRating(rates[position]); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setFocusable, setIsIndicator, setRating
17:	RatingBar rs=new RatingBar(table.getContext(),null,R.attr.ratingBarStyleSmall); 
18:	rs.setIsIndicator(true); 
-
20:	rs.setFocusable(false); 
-
22:	rs.setRating((((Number)fieldValue)).floatValue()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setTag, setNumStars, setOnRatingBarChangeListener, setRating
51:	RatingBar rate=new RatingBar(ctxt); 
-
53:	rate.setNumStars(3); 
54:	rate.setStepSize(1.0f); 
-
60:	rate.setLayoutParams(new LinearLayout.LayoutParams( 
-
76:	rate.setOnRatingBarChangeListener(l); 
-
85:	rate.setTag(new Integer(position)); 
86:	rate.setRating(rates[position]); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled, setProgress, setMax, setNumStars
71:	ratingBar.setEnabled(false); 
72:	ratingBar.setNumStars(1); 
73:	ratingBar.setMax(1); 
-
77:	ratingBar.setProgress(rated ? 1 : 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLayoutParams, getMeasuredHeight, getMeasuredWidth, layout
75:	LayoutParams var15 = (LayoutParams)var8.getLayoutParams(); 
-
77:	int var17 = var8.getMeasuredHeight(); 
-
82:	int var22 = var8.getMeasuredWidth(); 
-
86:	var8.layout(var16, var20, var23, var25); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getRating
115:	raAdapter.setRating(position, ratingBar.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
115:	raAdapter.setRating(position, ratingBar.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
115:	raAdapter.setRating(position, ratingBar.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
101:	int rating = (int) moodRate.getRating(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
85:	ratingvalue = ratingbar.getRating(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating, setRating
47:	e.putFloat(MY_RATE, rb.getRating()); 
-
59:	rb.setRating(0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRating
63:	rating = String.valueOf(ratingBar.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClickable, setRating
47:	ratingBar.setClickable(false); 
48:	ratingBar.setRating((float)this.items.get(position).getStars()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRating
66:	visit.setRating(rating.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setVisibility
180:	ratingBar.setVisibility(View.GONE); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setNumStars, setRating
103:	driRating.setNumStars(Integer.parseInt(record.getLevel())); 
104:	driRating.setRating(Float.parseFloat(record.getLevel())); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setProgress, setOnRatingBarChangeListener
19:	ratingRatingBar.setProgress(dumplingRating.getRating().getValue()); 
20:	ratingRatingBar.setOnRatingBarChangeListener(this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRating
78:	rate=ratinbar.getRating(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
77:	rating = b.getRating(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setRating
82:	this.ratingBar.setRating(rating); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
59:	return Math.round((rb.getRating() * 8 / 5)) + 1; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setRating
149:	_ratingBar.setRating(book.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
37:	return (int) this.ratingBar.getRating(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRating
58:	jugador.setSpeed(speed.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setRating
61:	_rate.setRating(_cityItem.rate); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
33:	ratingText.setText(""+this.rating.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
48:	book.setBookRating(bookRating.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
117:	raAdapter.setRating(position, ratingBar.getRating()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getTag
72:	rates[(Integer)ratingBar.getTag()]=rating; 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getRating
26:	float puntuacion = ratingBar.getRating(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setRating
25:	ratingBar.setRating(rating); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setRating
141:	ratingBar.setRating(rating == null ? 0f : rating.floatValue()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getTag
60:	rates[(Integer)ratingBar.getTag()]=rating; 
Full Snippet Info
4
CodeRank
Related Android RatingBar Questions & Answers:
See Code Examples for Android RatingBar Methods: