I'm trying to create a mail program in android. I've created a list from the server, it shows a mail list view (like gmail and others). Now I want to display a rating for important mails. How can I use the rating option in the mail listview? Anyone know the way to do this?
Just put a RatingBar
in your list rows. When the user adjusts the rating, update your data model to reflect the new rating. Here is a sample project demonstrating the use of a RatingBar
in ListView
rows.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.