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.
我已经看到用于各种 xml 组的适配器,例如 listview imageview、gallery,它到底是做什么的。我阅读了谷歌上的文档,但它似乎对我没有帮助。
适配器以自定义方式将消费者(例如 a AdapterView、like a ListView)连接到数据源。
AdapterView
ListView
消费者本质上向适配器请求单独的视图,适配器的职责是构建它们。