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.
由于每个 ListView 都需要有 android:id="android:id/list"... 我怎样才能在两个不同的片段上创建两个列表视图?.. OnItemSelectListener 似乎在监听另一个片段的事件...请帮助
我有完全相同的情况......到目前为止,我的猜测是这是不可能的,因为应用程序只考虑创建的第一个 ListView (因为 android:id="android:id/list" 在应用程序范围内必须是唯一的) 文档没有说明如何拥有自定义 ID,因此我的猜测是在这种情况下,无法使用 ListFragment。