Code example for RatingBar

Methods: getRating

0
		this.listener = listener;
	} 
 
	public int getRates() 
	{ 
		return (int) this.ratingBar.getRating();
	} 
 
	public String getText()
	{ 
		return this.editText.getText().toString();
	} 
 
	public AlertDialog create()
	{ 
		View v = layoutInflater.inflate(R.layout.dialog_review, null);
		ratingBar = (RatingBar) v.findViewById(R.id.review_rating);
		editText = (EditText) v.findViewById(R.id.review_comment);
 
		ContentDialog dialog = new ContentDialog(activity, title);
		dialog.setContentView(v);