Created
July 6, 2014 11:33
-
-
Save gmsetiawan/dc46195e3d1b3d3141bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final TextView tvRate = (TextView) findViewById(R.id.textView6); | |
RatingBar rbRate = (RatingBar) findViewById(R.id.ratingBar1); | |
rbRate.setOnRatingBarChangeListener(new OnRatingBarChangeListener() { | |
@Override | |
public void onRatingChanged(RatingBar ratingBar, float rating, | |
boolean fromUser) { | |
// TODO Auto-generated method stub | |
tvRate.setText(String.valueOf(rating)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment