Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ExpandableListView 的默认行为是在单击标题时折叠组。不点击就可以显示吗?始终显示孩子而不点击
尝试使用此代码
ExpandableListView mExpandableListView = (ExpandableListView) findViewById(R.id.exListview); int count = viewAdapter.getGroupCount(); for (int position = 1; i <= count; position++) { mExpandableListView.expandGroup(position - 1); }