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.
我想使用适配器将数据列表与将显示的垂直 LinearLayout 同步。我遇到的问题是非AdapterView 视图组(如LinearLayout)没有setAdapter() 方法。任何人都可以提出实现这一目标的方法吗?
而是使用带有 SimpleAdapter 或 SimpleCursorAdapter 的 ListView。两种适配器都非常灵活,可根据您的数据进行各种定制。