在 ExpandableListview 中获取特定 child 的视图
Get view of a specific child in ExpandableListview
在我的 Expandablelistview 中,我有一行要手动添加 child。所以我需要获取 Edittext 的文本。通过使用 getFocusedChild()
,我可以得到这个,但是当 edittext 为空白时,这一行没有焦点,我无法得到这个视图。最后我得到错误。
有什么方法可以在不使用焦点方式的情况下查看特定的 child 吗?
如果显示在屏幕上,可能会获得观看次数。我们可以使用 expListview.getChildAt(int position)
.
在我的 Expandablelistview 中,我有一行要手动添加 child。所以我需要获取 Edittext 的文本。通过使用 getFocusedChild()
,我可以得到这个,但是当 edittext 为空白时,这一行没有焦点,我无法得到这个视图。最后我得到错误。
有什么方法可以在不使用焦点方式的情况下查看特定的 child 吗?
如果显示在屏幕上,可能会获得观看次数。我们可以使用 expListview.getChildAt(int position)
.