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); }