ExpandableListView centains链接不会扩大 [英] ExpandableListView centains a link does not expand

查看:354
本文介绍了ExpandableListView centains链接不会扩大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ExpandableListView包含一个链接,当有一个链接不会扩大,我希望链接点击。

code是这样的:

 < ExpandableListView的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
机器人:ID =@机器人:ID /列表的android:layout_width =FILL_PARENT
机器人:layout_height =FILL_PARENT机器人:groupIndicator =@空/>

 < TextView的机器人:layout_below =@用户名/屏幕名机器人:layout_alignLeft =@用户名/屏幕名机器人:layout_height =WRAP_CONTENT的android:layout_width =FILL_PARENT机器人:自动链接=网页|电子邮件机器人:linksClickable =真正的机器人:ID =@ + ID /文本/>


解决方案

您不能有链接可点击,并在同一时间列表项点击。它的一个或另一个。

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"  />

解决方案

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

这篇关于ExpandableListView centains链接不会扩大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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