![]() |
1
2
|
![]() |
2
1
要使用CursorAdapter(或其任何子类),您需要有“\u id”列; it's explicitly stated in the documentation . 这是因为CursorAdapter大量使用此列。
我怀疑如果您控制数据库,那么#1将更容易执行,但是如果您无法更改数据库的模式,那么您必须执行#2。 |