2017-07-26 56 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找到更多的數據。