簡體   English   中英

BaseExpandableListAdapter不在DataChange上更新

[英]BaseExpandableListAdapter not Updating on DataChange

我在我的ExpandibleListView中使用BaseExpandableListAdapter ,在ExpandableListView.setAdapter()的第一次數據正確顯示。我再次設置了一個帶有單個子組的新適配器。在調試時,我觀察到getgroupCount()為調用並返回計數1 調用了getChildCount()並重新調整了計數1。但是,沒有調用getGroupView()getChildView()

我嘗試了其他方法,例如ExpandableListView的invalidate(),invalidateViews(); Adapter的notifyDatasetChanged()方法。

感謝和問候,
沙。

對不起大家,
從我這邊的錯誤。我知道其他一些視圖正在使用屏幕的所有空間,將Expandable ListView推到Screen的底部。

問候,
沙。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM