Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/225.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android AdapterContextMenuInfo.id_Android - Fatal编程技术网

Android AdapterContextMenuInfo.id

Android AdapterContextMenuInfo.id,android,Android,我已经在网上查过了。所以我的理解是AdapterContextMenuInfo.position是listview中项目的索引 AdapterContextMenuInfo.id是光标中项目的索引还是数据库中项目的主键id?我已将其用作数据库中项目的主键id。游标是否按主键索引 AdapterContextMenuInfo.id是光标中项目的索引还是数据库中项目的主键id 当您使用光标或适配器时,光标内的\u id列的值 游标是否按主键索引 光标没有索引,句点。但是,要使用CursorAdapt

我已经在网上查过了。所以我的理解是AdapterContextMenuInfo.position是listview中项目的索引

AdapterContextMenuInfo.id是光标中项目的索引还是数据库中项目的主键id?我已将其用作数据库中项目的主键id。游标是否按主键索引

AdapterContextMenuInfo.id是光标中项目的索引还是数据库中项目的主键id

当您使用
光标或适配器时,
光标内的
\u id
列的值

游标是否按主键索引


光标
没有索引,句点。但是,要使用
CursorAdapter
,必须在
Cursor
的结果集中有一列,该列的名称为
\u id

它们以某种方式被索引,因为您可以执行Cursor。moveToPosition(int)right?@almostrufio:好吧,只要数组被“索引”。我想这取决于你对这个词的使用。啊,我想我明白了。若我们将适配器视为一个值数组,并且光标指向适配器的一行,则适配器行的行号(从零开始)是位置。