ExpandabeListView not support ChildClickListener in android

拈花ヽ惹草 提交于 2019-12-06 01:13:37

This issue appear then your children's View has own focusable element. You can remove it by removing android:clickable from children layout or set to false:

   <?xml version="1.0" encoding="utf-8"?>
   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:background="@drawable/group_item_normal"
  android:id="@+id/groupItem"
  <!-- remove clickable from here -->
  <!-- or android:clickable="false" -->
  >

If you children element doesn't has any clickable and focusable elements, then work standart ListView focusable.

sorry for my bad english

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