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.
我想在布局中有多个可扩展列表。似乎自定义布局中的可扩展列表的 id 必须为“@id/android:list”。那么,如果他们需要相同的 id,我怎么能拥有多个呢?谢谢...
他们不必有ID - 如果您使用或@id/android:list,他们只需要有那个 ID 。只需使用普通并给他们唯一的ID。ListActivityExpandableListActivityActivity
@id/android:list
ListActivity
ExpandableListActivity
Activity