A custom view for rating which easy to make and use, but function is excellent.
github-QRatingView
Usage for displaying// Default Size is 5dp // Default Size is 25dp // Default value is true
You are supposed to set tow properties, available and selectedCount. And available should be set as false.
you can use it in .xml
also it also will be work in java
main_qrv2.available = false main_qrv2.selectedCount = 5for rating
In this case, we need to set totalCount in .xml and add A selected Lisntener for result
findViewById(R.id.qrv_main3).setonSelectedListener(object : QRatingView.onSelectedListener { override fun onSelected(selectedCount: Int) { when (selectedCount) { //todo any reaction for rating 1 -> commence1.text = "很差" 2 -> commence1.text = "有待改进" 3 -> commence1.text = "还行" 4 -> commence1.text = "不错" 5 -> commence1.text = "非常可以" } } })



