1
是否有可能找到ExpandableListView中的第一個可見項是GroupIndicator視圖還是其下的一個childView? plz幫助檢查ExpandableListView中的Firstvisible項是Groupindicator嗎?
預先感謝
是否有可能找到ExpandableListView中的第一個可見項是GroupIndicator視圖還是其下的一個childView? plz幫助檢查ExpandableListView中的Firstvisible項是Groupindicator嗎?
預先感謝
終於成功地做到這一點
int firstVisibleItem = mExpListView.getFirstVisiblePosition();
long data = mExpListView.getExpandableListPosition(firstVisibleItem);
int type = mExpListView.getPackedPositionType(data);
if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) {
Log.i("info", "childindicator");
}else
Log.i("info", "groupindicator");