如果包含的RatingBar列表项变为不可点击? [英] List item becomes unclickable if contains a RatingBar?

查看:170
本文介绍了如果包含的RatingBar列表项变为不可点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用自定义列表视图和自定义的评价吧。

I have used custom listview and custom rating bar.

如果我补充一点,自定义的RatingBar 作为孩子的项目 的< STRONG>列表项变为不可点击

如果我删除的RatingBar观点那么它就变成可点击的。

我使用的自定义的评价吧。这里是链接

I used custom rating bar. here is the link.

谁能帮我解决这个问题?

Can anyone help me to solve this problem?

推荐答案

如果你希望你的等级栏进行评级,您可以添加

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

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

要查看你的 row.xml

如果你想有一个静态的评级杆保持它的速度可以给<一个href="http://developer.android.com/reference/android/widget/RatingBar.html#setIsIndicator%28boolean%29">setIsIndicator(boolean isIndicator)

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

ratingbar.setIsIndicator(true);

在你的适配器类。

这篇关于如果包含的RatingBar列表项变为不可点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆