Because Corona SDK has not supported the rating view, I create a library named starView to do that job. It is quite simple to apply this library in three lines. First, we include the starView library in the program.
local starsView = require("starsView")
Then, we initialize the starView object. The parameters are the x, y, initial star numbers, and is editable of the starView. You could see the starView could work well now.
starsView:new(200, 150, 4, true)
Finally, you could get the result by the following code.