Computer Science, asked by Shivamdhru7853, 1 year ago

How to use RatingBar in android?

Answers

Answered by shubhamyadav90
1

To use the rating bar in the app, we will use the in-built RatingBar widget, hence the first step is to import it into the project. In the MainActivity, make the RatingBar object denoted by the variable 'rt' and find its corresponding view in the XML file. This is done by the findViewById() method.

i hope it help you dear

please mark answer as brainlist

Answered by ritikaamlajiya
0

Android RatingBar can be used to get the rating from the user. The Rating returns a floating-point number. It may be 2.0, 3.5, 4.0 etc.

Android RatingBar displays the rating in stars. Android RatingBar is the subclass of AbsSeekBar class.

The getRating() method of android RatingBar class returns the rating number.

Mark as brainliest

Similar questions