Android ListView that has RatingBar

If you are using a ratingbar as indicators to number of stars in a custom listview, the ratingbar will take over the onclick event coming into the list. listview.setonitemclickedlistener() will not work in this case.

To overcome this issue, you just need to set the RatingBar attribute the xml file (android:isIndicator=”true”).