RatingBar onClick

后端 未结 5 878
孤街浪徒
孤街浪徒 2020-12-25 13:59

I have a ListView that uses different XML files to create Views and make items out of. One of these XML files contains a RatingBar. Everything displays and looks excellent

5条回答
  •  离开以前
    2020-12-25 14:26

    In a ListView, you generally have to decide if you want the list view items to be clickable, or an item contained within the listview. Does r.isClickable() return true?

    You might have better luck setting clickable to false on the RatingBar, and instead using onClickListener of the listView to deal with the click events on the listView row.

提交回复
热议问题