如何在列表视图不可点击的Andr​​oid设置项目视图、项目、列表、如何在

由网友(换我堕落ミ)分享简介:如何在列表视图中的项目没有点击能。我得到了主题和项目的列表视图,但观点是相同的两个课题和项目。该项目被点击能,但话题是不是点击能。如何实现这一目标。How to make the items in a list view not click able. i got topics and items in a list...

如何在列表视图中的项目没有点击能。我得到了主题和项目的列表视图,但观点是相同的两个课题和项目。该项目被点击能,但话题是不是点击能。如何实现这一目标。

How to make the items in a list view not click able. i got topics and items in a list view but the view is same for both topics and items. the items are click able but the topic is not click able. how to achieve this

列表会像

Topic
item
Topic
item
item

主题。点击能(假)没有工作,请大家帮忙

topic. click able(false) did not work, please help

推荐答案

分享我的经验,下面做的伎俩(查看指列表项视图):

Sharing my experience, the following did the trick (view refers to the list item view):

view.setEnabled(false);
view.setOnClickListener(null);

使通过重写方法没有奏效的方法决不会被调用。 设置可聚焦为false没有正常工作。

阅读全文

相关推荐

最新文章