2017-07-26 51 views

回答

0

我认为您正在寻找光标。它是一个返回查询数据集合的接口。 以下方法在光标接口,该接口通过游标迭代可用时,光标指针设定到所需的位置:

  • moveToFirst()
  • moveToLast()
  • 使用MoveToNext()
  • moveToPrevious ()
  • moveToPosition(位置)

有关游标方法的更多信息请访问日只是要创建的对象的列表中删除光标可以使用MatrixCursor像波纹管:

String[] columns = new String[] { "_id", "item", "description" }; 

MatrixCursor matrixCursor = new MatrixCursor(columns); 

for (JsonElement mus : musics) { 
      matrixCursor.addRow(new Object[] { 1, "Item A", "...." }); 
} 

您可以从here找到更多的数据。