android - 在什么条件下在 ExpandableListAdapter 中调用 getChildView()

标签 android view expandablelistview inflate expandablelistadapter

在我的应用程序中,ExpandableListAdapter 中的 getChildView() 没有被调用,而适配器返回正确的子计数(当 getChildrenCount()被调用)。 我的问题是; 要让 ExpandableListAdapter 扩充其子级,需要满足哪些条件?

最佳答案

当您在组中和子项中有超过 1 个项目时调用,我的意思是当 get GroupCount 返回大于 0 的值时

关于android - 在什么条件下在 ExpandableListAdapter 中调用 getChildView(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18152629/

相关文章:

java - 在触摸点的 ImageView 上画圆

android - 如何通过布局 xml 文件更改 ExpandableListView 中子分隔符的颜色?

android - 如何保持 ExpandableListView 打开?

android - 如何添加多级可扩展 ListView ? (安卓)

android - Flutter Webview 抛出编译错误-ThreadedInputConnectionProxyAdapterView location : class InputAwareWebView

java - onTouch 方法 - 跟踪已单击或按下的按钮实例

gwt - 如何设置 gwt 2.1 CellTables 标题的样式?

html - 在浏览器中查看扩展名为 .asp 的本地 html 文件

android - 滚动 ListView 后 onChildClick 事件停止

java - 我的 android 应用程序中有多个 http 请求。线程