当复选框父XML添加expandablelistview是没有得到扩大 [英] expandablelistview is not getting expanded when checkbox is added in parent xml

查看:170
本文介绍了当复选框父XML添加expandablelistview是没有得到扩大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制定 ExpandableListView 的样本code中的 安卓。数据被填充适配器和在 ExpandableListView 正确显示。但我面临敲击 Groupview 后没有扩张子视图中的一个严重问题。

I have developed the sample code of 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.

问题是,当我添加复选框,将 XML <即在 getgroupView()方法子视图不会被窃听后扩大 Groupview 充气/ A>(父XML)可是,如果复选框从 XML 所有效果很好。

The problem is when i add check box to the xml(parent xml) that is inflated in getgroupView() method child view does not get expanded after tapping Groupview.But, if checkbox is removed from the xml all works well.

类似的问题已发布的计算器,但似乎没有任何工作。

推荐答案

如果您将是一个项目可聚焦列表,那么列表项不再<$​​ C $ C>响应点击

If you place an item that is focusable in a list, then the list items no longer respond to clicks

尝试设置复选框 机器人:可聚焦属性

这篇关于当复选框父XML添加expandablelistview是没有得到扩大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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