ExpandableListView centains a link does not expand

可紊 提交于 2019-12-11 04:55:13

问题


I have an ExpandableListView contains a link, it does not expand when has a link, and i want the link is clickable.

code like this:

<ExpandableListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:groupIndicator="@null" /> 

and:

<TextView android:layout_below="@id/screenName" android:layout_alignLeft="@id/screenName" android:layout_height="wrap_content" android:layout_width="fill_parent"   android:autoLink="web|email" android:linksClickable="true" android:id="@+id/text"  />

回答1:


You can't have the link clickable and the list item clickable at the same time. It's one or the other.



来源:https://stackoverflow.com/questions/2151116/expandablelistview-centains-a-link-does-not-expand

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!