Multiple Android expandable lists in a layout

巧了我就是萌 提交于 2020-01-05 09:35:39

问题


I want to have more than one expandable list within a layout. It appears that an expandable list in a custom layout must have an id of "@id/android:list". So, how could I have more than one if they would need to have the same id? Thanks...


回答1:


They don't have to have the @id/android:list ID - they only have to have that ID if you are using a ListActivity or ExpandableListActivity. Just use a normal Activity and give them unique IDs.



来源:https://stackoverflow.com/questions/1209726/multiple-android-expandable-lists-in-a-layout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!