ExpandableListView的子条目不可点击?????

yunmenggyy yunmenggyy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
ExpandableListView的子条目中只有两个TextView

<?xml version="1.0" encoding="UTF-8"?>

<!-- 子条目的布局 -->
<LinearLayout
android:orientation="horizontal"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<TextView
android:id="@+id/name"
android:textColor="@color/itembig"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>

<TextView
android:id="@+id/number"
android:textColor="@color/number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>


</LinearLayout>


网上有人说是因为item里面有可获取焦点的view,可是我在这里及时设置了focusable和Cilckable属性之后,仍然不起作用。子项还是不可点击?????


...全文
评论 2
收藏 已收藏
分享
返回顶部
yunmenggyy
Android 80,489 成员 91,375 内容