Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List item becomes unclickable if contains a RatingBar?

I have used custom listview and custom rating bar.

If I add that custom RatingBar as child to the List item, the List Item becomes unclickable.

If i remove that Ratingbar view then it becomes clickable .

I used custom rating bar. here is the link.

Can anyone help me to solve this problem?

like image 507
Chirag Avatar asked Jun 14 '12 11:06

Chirag


1 Answers

If you want your rating bar to perform rating you can add

 android:focusable="false"
 android:focusableInTouchMode="false"

to view of your row.xml

If you want a static rating bar holding its rate you can give setIsIndicator(boolean isIndicator)

ratingbar.setIsIndicator(true);

in your Adapter class.

like image 125
Lalit Poptani Avatar answered Nov 11 '22 10:11

Lalit Poptani