当在父XML中添加复选框时,展开式列表视图不会展开 [英] expandablelistview is not getting expanded when checkbox is added in parent xml
问题描述
我已开发。数据正在适配器中填充,并正确显示在 ExpandableListView
中。但是我面对一个严重的问题,即在点击 Groupview
后不会扩展子视图。
问题是当我添加复选框到 getgroupView()方法子视图中展开的'xml'rel =tag> xml (父xml) c $ c> Groupview 。但是,如果从 xml 一切正常。
类似问题已发布在StackOverflow,但似乎没有什么工作。 >
如果您将 尝试将 I have developed the sample code of The problem is when i add check box to the xml(parent xml) that is inflated in Similar question has been posted in StackOverflow, but nothing seems to work. If you place an item that is Try to set the 这篇关于当在父XML中添加复选框时,展开式列表视图不会展开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! focusable
code> list ,则列表项
不再响应 / p>
CheckBox
android:focusable
属性设置为 false
。ExpandableListView
in . Data is being populated in Adapter and displaying in the ExpandableListView
properly. but i am facing one severe issue of not expanding child view after tapping on Groupview
. getgroupView()
method child view does not get expanded after tapping Groupview
.But, if checkbox is removed from the xml all works well.focusable
in a list
, then the list items
no longer respond to clicks
CheckBox
android:focusable
attribute to false
.